Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146131448
D51789.id159956.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
687 B
Referenced Files
None
Subscribers
None
D51789.id159956.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
@@ -9693,17 +9693,23 @@
dnflow->f_id.proto = pd->proto;
dnflow->f_id.extra = dnflow->rule.info;
switch (pd->naf) {
+#ifdef INET
case AF_INET:
dnflow->f_id.addr_type = 4;
dnflow->f_id.src_ip = ntohl(pd->src->v4.s_addr);
dnflow->f_id.dst_ip = ntohl(pd->dst->v4.s_addr);
break;
+#endif /* INET */
+#ifdef INET6
case AF_INET6:
dnflow->flags |= IPFW_ARGS_IP6;
dnflow->f_id.addr_type = 6;
dnflow->f_id.src_ip6 = pd->src->v6;
dnflow->f_id.dst_ip6 = pd->dst->v6;
break;
+#endif /* INET6 */
+ default:
+ unhandled_af(pd->naf);
}
return (true);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 2:16 AM (2 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29091812
Default Alt Text
D51789.id159956.diff (687 B)
Attached To
Mode
D51789: pf: Add AF ifdefs in pf_pdesc_to_dnflow()
Attached
Detach File
Event Timeline
Log In to Comment