Page MenuHomeFreeBSD

D50658.id156464.diff
No OneTemporary

D50658.id156464.diff

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

Mime Type
text/plain
Expires
Thu, Apr 2, 5:07 AM (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30706172
Default Alt Text
D50658.id156464.diff (777 B)

Event Timeline