Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142721742
D30026.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
485 B
Referenced Files
None
Subscribers
None
D30026.id.diff
View Options
diff --git a/sys/netpfil/pf/pf_norm.c b/sys/netpfil/pf/pf_norm.c
--- a/sys/netpfil/pf/pf_norm.c
+++ b/sys/netpfil/pf/pf_norm.c
@@ -794,7 +794,11 @@
}
ip = mtod(m, struct ip *);
+ ip->ip_sum = pf_cksum_fixup(ip->ip_sum, ip->ip_len,
+ htons(hdrlen + total), 0);
ip->ip_len = htons(hdrlen + total);
+ ip->ip_sum = pf_cksum_fixup(ip->ip_sum, ip->ip_off,
+ ip->ip_off & ~(IP_MF|IP_OFFMASK), 0);
ip->ip_off &= ~(IP_MF|IP_OFFMASK);
if (hdrlen + total > IP_MAXPACKET) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 4:37 PM (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27887627
Default Alt Text
D30026.id.diff (485 B)
Attached To
Mode
D30026: pf: Fix IP checksum on reassembly
Attached
Detach File
Event Timeline
Log In to Comment