CVSROOT: /cvs Module name: src Changes by: gil...@cvs.openbsd.org 2012/05/12 18:10:49
Modified files: usr.sbin/smtpd : map.c map_db.c map_stdio.c parse.y ruleset.c smtpd.h util.c Log message: - 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" [...]