Page MenuHomeFreeBSD

D46877.diff
No OneTemporary

D46877.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
@@ -8854,8 +8854,12 @@
struct pfi_kkif *kif;
u_short action, reason = 0;
struct mbuf *m = *m0;
+#ifdef INET
struct ip *h = NULL;
+#endif
+#ifdef INET6
struct ip6_hdr *h6 = NULL;
+#endif
struct m_tag *mtag;
struct pf_krule *a = NULL, *r = &V_pf_default_rule;
struct pf_kstate *s = NULL;
@@ -9210,10 +9214,14 @@
else
pd.pf_mtag->qid = pd.act.qid;
/* Add hints for ecn. */
+#ifdef INET
if (af == AF_INET)
pd.pf_mtag->hdr = h;
- else
+#endif
+#ifdef INET6
+ if (af == AF_INET6)
pd.pf_mtag->hdr = h6;
+#endif
}
}
#endif /* ALTQ */

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 7:06 AM (3 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13472320
Default Alt Text
D46877.diff (696 B)

Event Timeline