Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153617172
D32807.id97875.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
893 B
Referenced Files
None
Subscribers
None
D32807.id97875.diff
View Options
Index: sys/netinet/ip_divert.c
===================================================================
--- sys/netinet/ip_divert.c
+++ sys/netinet/ip_divert.c
@@ -227,6 +227,25 @@
m->m_pkthdr.csum_flags &= ~CSUM_SCTP;
}
#endif
+#ifdef INET6
+ if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6) {
+ m = mb_unmapped_to_ext(m);
+ if (m == NULL)
+ return;
+ in6_delayed_cksum(m, m->m_pkthdr.len -
+ sizeof(struct ip6_hdr), sizeof(struct ip6_hdr));
+ m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA_IPV6;
+ }
+#if defined(SCTP) || defined(SCTP_SUPPORT)
+ if (m->m_pkthdr.csum_flags & CSUM_SCTP_IPV6) {
+ m = mb_unmapped_to_ext(m);
+ if (m == NULL)
+ return;
+ sctp_delayed_cksum(m, sizeof(struct ip6_hdr));
+ m->m_pkthdr.csum_flags &= ~CSUM_SCTP_IPV6;
+ }
+#endif
+#endif /* INET6 */
bzero(&divsrc, sizeof(divsrc));
divsrc.sin_len = sizeof(divsrc);
divsrc.sin_family = AF_INET;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 9:10 AM (8 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32021227
Default Alt Text
D32807.id97875.diff (893 B)
Attached To
Mode
D32807: Calculate delayed csums for IPv6 adress family in divert_packet
Attached
Detach File
Event Timeline
Log In to Comment