Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102965285
D46877.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
696 B
Referenced Files
None
Subscribers
None
D46877.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
@@ -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
Details
Attached
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)
Attached To
Mode
D46877: pf: Fix NOINET and NOINET6 build.
Attached
Detach File
Event Timeline
Log In to Comment