Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136959758
D24100.id69681.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
686 B
Referenced Files
None
Subscribers
None
D24100.id69681.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D24100: Improve pfctl rule load times with thousands of interfaces
Attached
Detach File
Event Timeline
Log In to Comment