]> git.ipfire.org Git - thirdparty/ipset.git/blob - check_const
netfilter: ipset: fix race condition between swap/destroy and kernel side add/del...
[thirdparty/ipset.git] / check_const
1 #! /usr/bin/awk -f
2
3 # include/linux/nfnetlink.h: nfnl_callback
4 # include/linux/netlink.h: netlink_dump_start
5 { if (/^(struct nfnl_callback|extern int netlink_dump)/) { check=1 } }
6 { if (check == 1 && /(^};|...\);)/) { check=0 } }
7
8 { if (check == 1 && /const struct nlmsghdr/) { print "const" } }