Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115674547
D47803.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.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
Sun, Apr 27, 11:02 PM (9 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17822860
Default Alt Text
D47803.diff (671 B)
Attached To
Mode
D47803: pf: update pd->tot_len after reassembly
Attached
Detach File
Event Timeline
Log In to Comment