diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-05-13 00:10:50 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-05-13 00:10:50 +0000 |
commit | d4519c494c7974b50ea27f225264140734385a4b (patch) | |
tree | 1eb6171f3d6576734c9b808deb6534dd93cf65ac /usr.bin/ktrace | |
parent | be2353b2a7b188c78bbf94f4c28cef23d8951bd7 (diff) |
- cleanup parse.y by removing lots of code that should not have been there,
but in ruleset.c and util.c instead.
- introduce the new map_compare() map API call to allow iterating over keys
and comparing them with provided key using provided function. this allows
checking a partial key in a key set, very useful for comparing an address
to a set of netmask.
- introduce new map kind K_NETADDR
- implement K_NETADDR for map_db and map_stdio
- teach ruleset checking how to use the map_compare() with K_NETADDR
we can now do the following:
map "srcaddr" source plain "/etc/mail/srcaddr.txt"
accept from map srcaddr for domain "openbsd.org" [...]
Diffstat (limited to 'usr.bin/ktrace')
0 files changed, 0 insertions, 0 deletions