Page MenuHomeFreeBSD

D24100.id69681.diff
No OneTemporary

D24100.id69681.diff

Index: head/sbin/pfctl/pfctl_parser.c
===================================================================
--- head/sbin/pfctl/pfctl_parser.c
+++ head/sbin/pfctl/pfctl_parser.c
@@ -1563,16 +1563,17 @@
mask = -1;
}
- /* interface with this name exists? */
- if (cont && (h = host_if(ps, mask)) != NULL)
- cont = 0;
-
/* IPv4 address? */
if (cont && (h = host_v4(s, mask)) != NULL)
cont = 0;
/* IPv6 address? */
if (cont && (h = host_v6(ps, v6mask)) != NULL)
+ cont = 0;
+
+ /* interface with this name exists? */
+ /* expensive with thousands of interfaces - prioritze IPv4/6 check */
+ if (cont && (h = host_if(ps, mask)) != NULL)
cont = 0;
/* dns lookup */

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 21, 8:28 PM (6 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25796648
Default Alt Text
D24100.id69681.diff (686 B)

Event Timeline