CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2013/08/01 13:03:11
Modified files:
sbin/pfctl : parse.y pfctl_parser.c pfctl_parser.h
Log message:
Provide local implementations of if_nametoindex(3) and if_indextoname(3)
that make use of the cache of addresses populated by the ifa_load on
startup to save the trouble of calling expensive getaddrinfo(3) up to
four times per rule. Performance wise this change provides a speed up
factor of 20 with a 11k line ruleset on a machine with 150 VLANs and 250
IP addresses (20 seconds down to 1 in this case).
"wow!" henning, ok benno, florian