Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152212462
D47803.id148156.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
D47803.id148156.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
@@ -1198,6 +1198,7 @@
return (PF_DROP);
h = mtod(pd->m, struct ip *);
+ pd->tot_len = htons(h->ip_len);
no_fragment:
/* At this point, only IP_DF is allowed in ip_off */
@@ -1228,6 +1229,7 @@
struct pf_pdesc *pd)
{
struct pf_krule *r;
+ struct ip6_hdr *h;
struct ip6_frag frag;
bool scrub_compat;
@@ -1294,6 +1296,8 @@
pd->m = *m0;
if (pd->m == NULL)
return (PF_DROP);
+ h = mtod(pd->m, struct ip6_hdr *);
+ pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
}
return (PF_PASS);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 14, 11:11 AM (17 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31470115
Default Alt Text
D47803.id148156.diff (671 B)
Attached To
Mode
D47803: pf: update pd->tot_len after reassembly
Attached
Detach File
Event Timeline
Log In to Comment