Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164700278
D58556.id183112.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
749 B
Referenced Files
None
Subscribers
None
D58556.id183112.diff
View Options
diff --git a/sys/netinet6/ip6_var.h b/sys/netinet6/ip6_var.h
--- a/sys/netinet6/ip6_var.h
+++ b/sys/netinet6/ip6_var.h
@@ -66,6 +66,24 @@
#include <sys/epoch.h>
#ifdef _KERNEL
+/*
+ * For IPv6 pseudo header checksum; to be used by TCP-MD5,
+ * and for OCF source level compatibility with OpenBSD.
+ */
+struct ip6_hdr_pseudo {
+ struct in6_addr ip6ph_src;
+ struct in6_addr ip6ph_dst;
+ uint32_t ip6ph_len;
+ uint8_t ip6ph_zero[3];
+ uint8_t ip6ph_nxt;
+} __aligned(4);
+
+#ifdef INVARIANTS
+/* Aligned size of pseudo-header must equal size of IPv6 header. */
+_Static_assert(sizeof(struct ip6_hdr_pseudo) == 40,
+ "IPv6 pseudo-header alignment failure");
+#endif
+
struct ip6asfrag; /* frag6.c */
TAILQ_HEAD(ip6fraghead, ip6asfrag);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 4, 6:14 AM (2 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35789678
Default Alt Text
D58556.id183112.diff (749 B)
Attached To
Mode
D58556: netinet6: Add a definition of struct ip6_hdr_pseudo{} for OCF compatibility.
Attached
Detach File
Event Timeline
Log In to Comment