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 #include +#include + #include #include @@ -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);