summaryrefslogtreecommitdiff
path: root/ip6.h
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2010-10-28 16:23:25 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2010-10-28 16:23:25 +0000
commit6d59e2f382406def185ce5261b8723a174cd28a3 (patch)
tree554972ce0ce297205c6d41cc6fc9a8a393910a6f /ip6.h
parent0ea0e7ad03dff03bb5448f640640d7904c01c8d4 (diff)
Notes
Diffstat (limited to 'ip6.h')
-rw-r--r--ip6.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ip6.h b/ip6.h
index e4f9fe1c9e5ef..a6df97aae10b2 100644
--- a/ip6.h
+++ b/ip6.h
@@ -88,6 +88,20 @@ struct ip6_hdr {
struct in6_addr ip6_dst; /* destination address */
};
+/*
+ * Pseudo header, used for higher layer checksumming.
+ */
+union ip6_pseudo_hdr {
+ struct {
+ struct in6_addr ph_src;
+ struct in6_addr ph_dst;
+ u_int32_t ph_len;
+ u_int8_t ph_zero[3];
+ u_int8_t ph_nxt;
+ } ph;
+ u_int16_t pa[20];
+};
+
#define ip6_vfc ip6_ctlun.ip6_un2_vfc
#define ip6_flow ip6_ctlun.ip6_un1.ip6_un1_flow
#define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen