From 8dd10256cb24ceade8b40bd1604f03ddac8589e2 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 29 Jun 2010 21:14:40 +0200 Subject: ipset 5: Sparc related and compatibility fixes ipset 5 is tested on Sparc, which revealed some compatibility issues and those are fixed. Kernels from 2.6.31 onward are supported. The testsuite checkings are completed to run match/target checks. The README file is updated to reflect the requirements to install and run ipset 5. --- check_const | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 check_const (limited to 'check_const') diff --git a/check_const b/check_const new file mode 100755 index 0000000..c26b566 --- /dev/null +++ b/check_const @@ -0,0 +1,8 @@ +#! /usr/bin/awk -f + +# nfnetlink.h && netlink.h + +{ if (/^(struct nfnl_callback|extern int netlink_dump)/) { check=1 } } +{ if (check == 1 && /(^};|...\);)/) { check=0 } } + +{ if (check == 1 && /const struct nlmsghdr/) { print "const" } } -- cgit v1.2.3