summaryrefslogtreecommitdiff
path: root/sys/netinet/ip6.h
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-01-08 05:31:14 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-01-08 05:31:14 +0000
commit604f2bf1115604c7d299cd2d13d976c757239e12 (patch)
tree415e778bddfbf8467c5d4429a0a5328c6442e328 /sys/netinet/ip6.h
parent5960039866bf1c1a35dc85acb7d67fcd1575da88 (diff)
struct for IPv6 pseudo header checksum - nonstandard. from kame
Diffstat (limited to 'sys/netinet/ip6.h')
-rw-r--r--sys/netinet/ip6.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h
index 4239e4629a7..83a527c7d5d 100644
--- a/sys/netinet/ip6.h
+++ b/sys/netinet/ip6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6.h,v 1.13 2003/11/16 20:30:07 avsm Exp $ */
+/* $OpenBSD: ip6.h,v 1.14 2004/01/08 05:31:13 itojun Exp $ */
/* $KAME: ip6.h,v 1.45 2003/06/05 04:46:38 keiichi Exp $ */
/*
@@ -109,9 +109,20 @@ struct ip6_hdr {
#endif
/*
- * Extension Headers
+ * for IPv6 pseudo header checksum
+ * XXX nonstandard
*/
+struct ip6_hdr_pseudo {
+ struct in6_addr ip6ph_src;
+ struct in6_addr ip6ph_dst;
+ u_int32_t ip6ph_len;
+ u_int8_t ip6ph_zero[3];
+ u_int8_t ip6ph_nxt;
+} __packed;
+/*
+ * Extension Headers
+ */
struct ip6_ext {
u_int8_t ip6e_nxt;
u_int8_t ip6e_len;