Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168065925
D50658.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
777 B
Referenced Files
None
Subscribers
None
D50658.id.diff
View Options
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -114,6 +114,8 @@
#include <netinet/sctp_header.h>
#include <netinet/sctp_crc32.h>
+#include <netipsec/ah.h>
+
#include <machine/in_cksum.h>
#include <security/mac/mac_framework.h>
@@ -9694,7 +9696,7 @@
static int
pf_walk_header(struct pf_pdesc *pd, struct ip *h, u_short *reason)
{
- struct ip6_ext ext;
+ struct ah ext;
u_int32_t hlen, end;
hlen = h->ip_hl << 2;
@@ -9720,8 +9722,8 @@
DPFPRINTF(PF_DEBUG_MISC, ("IP short exthdr"));
return (PF_DROP);
}
- pd->off += (ext.ip6e_len + 2) * 4;
- pd->proto = ext.ip6e_nxt;
+ pd->off += (ext.ah_len + 2) * 4;
+ pd->proto = ext.ah_nxt;
break;
default:
return (PF_PASS);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 27, 5:26 AM (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37321337
Default Alt Text
D50658.id.diff (777 B)
Attached To
Mode
D50658: pf: use 'struct ah' for the AH extension header rather than 'struct ip6_ext'
Attached
Detach File
Event Timeline
Log In to Comment