Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Show correct line numbers in restore output for parser errors | Jozsef Kadlecsik | 2011-01-18 | 3 | -0/+17 |
| | | | | | | | | | | | | | | | | | Parser errors are reported by a wrong lineno at restore, bug reported by Holger Eitzenberger: create foo6 hash:ip hashsize 64 family inet6 add foo6 20a1:1234:5678::/64 add foo6 20a1:1234:5679::/64 you get: ipset v5.2: Error in line 1: Syntax error: plain IP address must be supplied: 20a1:1234:5678::/64 Should be line 2 though. The solution is to set the session lineno before parsing. | ||||
* | There is no need to call synchronize_net() at swapping. | Jozsef Kadlecsik | 2011-01-14 | 1 | -4/+0 |
| | | | | | | Ongoing add/del can happen to referenced sets and delete can be issued to unreferenced sets. So the bogus call to synchronize_net() can safely be removed. | ||||
* | Replace strncpy with strlcpy at creating a set. | Jozsef Kadlecsik | 2011-01-14 | 1 | -1/+1 |
| | | | | Better add more safety nets against user input. | ||||
* | Update copyright date and some style changes. | Jozsef Kadlecsik | 2011-01-14 | 14 | -16/+16 |
| | |||||
* | Use jhash.h accepted in kernel, with backward compatibility. | Jozsef Kadlecsik | 2011-01-13 | 9 | -9/+9 |
| | |||||
* | Separate prefixlens from ip_set core. | Jozsef Kadlecsik | 2011-01-13 | 13 | -297/+314 |
| | | | | | | Separate prefixlens from ip_set core for better readibility and honoring the independence. Also, comment that prefixlens were borrowed from Jan Engelhardt. | ||||
* | Replace ospf with vrrp in the testsuite | Jozsef Kadlecsik | 2011-01-13 | 2 | -5/+5 |
| | | | | Some systems do not contain ospf in /etc/protocols but ospfigp only. | ||||
* | Merge branch 'master' of git://dev.medozas.de/ipset | Jozsef Kadlecsik | 2011-01-12 | 1 | -6/+5 |
|\ | | | | | | | Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | ||||
| * | kernel: remove unused ctnl parameter from call_ad | Jan Engelhardt | 2011-01-03 | 1 | -6/+5 |
|/ | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | Merge branch 'master' of git://dev.medozas.de/ipset | Jozsef Kadlecsik | 2011-01-03 | 3 | -902/+2 |
|\ | | | | | | | Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | ||||
| * | build: remove autogenerated files | Jan Engelhardt | 2010-12-31 | 2 | -900/+0 |
| | | | | | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
| * | build: use only AC_CANONICAL_HOST | Jan Engelhardt | 2010-12-31 | 1 | -2/+2 |
|/ | | | | | | | Calculating AC_CANONICAL_TARGET is superfluous, because ipset is not a code generator. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | Comment the possible return values of the add/del/test type-functions | Jozsef Kadlecsik | 2010-12-23 | 1 | -2/+8 |
| | |||||
* | ipset 5.2 releasedv5.2 | Jozsef Kadlecsik | 2010-12-23 | 3 | -1/+11 |
| | |||||
* | Handle internal printing errors | Jozsef Kadlecsik | 2010-12-23 | 1 | -10/+25 |
| | | | | Internal printing errors were not reported, handle them by setjmp/longjmp. | ||||
* | Use cast to void * instead of memcpy as Sparc workaround at sockaddr_XXX. | Jozsef Kadlecsik | 2010-12-23 | 1 | -8/+6 |
| | | | | | | Direct cast results "cast increases required alignment of target type" on Sparc: use indirect cast to void * instead of memcpy, as Jan Engelhardt suggested. | ||||
* | Listing/saving of large sets could produce broken listing, fixed. | Jozsef Kadlecsik | 2010-12-23 | 2 | -9/+16 |
| | | | | | The wrapper around getnameinfo was not snprintf-compatible and that could cause broken listing/saving for large sets. | ||||
* | Kernel version check at minimal supported version is mistyped, now fixed. | Jozsef Kadlecsik | 2010-12-22 | 1 | -2/+2 |
| | |||||
* | Support libtool < 2.2 | Jozsef Kadlecsik | 2010-12-22 | 1 | -1/+1 |
| | | | | LT_INIT is not present before libtool 2.2. Revert to use AC_PROG_LIBTOOL. | ||||
* | ipset 5.1 releasedv5.1 | Jozsef Kadlecsik | 2010-12-22 | 3 | -1/+33 |
| | |||||
* | Test cases for IPv6 restore and more complex restore sessions added. | Jozsef Kadlecsik | 2010-12-22 | 6 | -0/+65 |
| | |||||
* | Restore mode did not work for IPv6 (reported by Elie Rosenblum) | Jozsef Kadlecsik | 2010-12-22 | 2 | -21/+30 |
| | | | | | | The set cache stored the default family (INET) instead of the set family, therefore restore mode for IPv6 did not work. The set cache fixed and message aggregation reworked. | ||||
* | Kernel version compatibility: support from 2.6.34 | Jozsef Kadlecsik | 2010-12-21 | 8 | -53/+48 |
| | | | | | The basic kernel compatibility issues are verified back to 2.6.24. The minimal supported kernel version had to be bumped from 2.6.31 to 2.6.34. | ||||
* | Merge branch 'master' of git://dev.medozas.de/ipset into ipset-5 | Jozsef Kadlecsik | 2010-12-20 | 23 | -225/+214 |
|\ | | | | | | | Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | ||||
| * | libipset: static annotations | Jan Engelhardt | 2010-12-19 | 1 | -4/+4 |
| | | |||||
| * | libipset: const annotations | Jan Engelhardt | 2010-12-19 | 5 | -8/+8 |
| | | |||||
| * | libipset: remove redundant casts | Jan Engelhardt | 2010-12-19 | 3 | -10/+10 |
| | | |||||
| * | libipset: remove redundant indirection via union name | Jan Engelhardt | 2010-12-19 | 1 | -41/+41 |
| | | | | | | | | | | There are no uses of C99 static initializers, so let's make the union anonymous and reduce accessor lengths. | ||||
| * | libipset: ipset_strncpy is really a strlcpy-type operation | Jan Engelhardt | 2010-12-19 | 3 | -12/+12 |
| | | |||||
| * | kernel: use EXPORT_SYMBOL_GPL | Jan Engelhardt | 2010-12-19 | 1 | -13/+13 |
| | | |||||
| * | kernel: const annotations | Jan Engelhardt | 2010-12-19 | 13 | -71/+71 |
| | | |||||
| * | kernel: use __read_mostly for registration-type structures | Jan Engelhardt | 2010-12-19 | 9 | -10/+10 |
| | | | | | | | | Here is where __read_mostly goes :-) | ||||
| * | kernel: do not mix const and __read_mostly | Jan Engelhardt | 2010-12-19 | 14 | -51/+40 |
| | | | | | | | | | | It makes no sense to mix these two. Either it is writable-plus-read-mostly, or it is constant. | ||||
| * | xt_set: avoid user types in exported kernel headers | Jan Engelhardt | 2010-12-19 | 1 | -6/+6 |
| | | | | | | | | Within isolated code it would be ok, but not so in exported headers. | ||||
| * | build: enable parallel building | Jan Engelhardt | 2010-12-19 | 1 | -3/+3 |
|/ | | | | | | | | | | | | | | $ make modules -j8 cd kernel; make -C /lib/modules/`uname -r`/build M=`pwd` V=0 \ IP_SET_MAX=256 \ NETLINK_DUMP_CONST=const \ NFNL_CB_CONST=const modules make[1]: Entering directory "/usr/src/linux-2.6.36-rc8-34-obj/x86_64/default" make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. The "fix" here is that we have to use ${MAKE} instead of make. (NB: The extra cd is redundant and can be appended to M=.) | ||||
* | Prevent calling Makefile directly in the kernel/ subdirectory | Jozsef Kadlecsik | 2010-12-19 | 1 | -0/+4 |
| | |||||
* | Put back the Sparc specific workaround at getaddrinfo. | Jozsef Kadlecsik | 2010-12-19 | 1 | -4/+8 |
| | |||||
* | Should have gone to sleep: fix check_allowed. Really. | Jozsef Kadlecsik | 2010-12-19 | 1 | -11/+11 |
| | | | | | | | It's not as nice as I'd like to be: IPSET_CREATE_FLAGS and IPSET_ADT_FLAGS are required elsewhere, but to make life simpler, some flags (like IPSET_OPT_TYPENAME) are *not* added to the types full[] flags. So those must be excluded here. | ||||
* | Check old system kernel header files | Jozsef Kadlecsik | 2010-12-18 | 1 | -0/+6 |
| | |||||
* | Check from `configure` that the kernel source is patched with netlink.patch | Jozsef Kadlecsik | 2010-12-18 | 1 | -0/+5 |
| | |||||
* | Use configure to detect compiler warning flags | Jozsef Kadlecsik | 2010-12-18 | 5 | -52/+262 |
| | | | | | By checking the supported compiler warning flags, different gcc releases are supported without the crude --disable-extra-flags option. | ||||
* | The fix of incorrect comparison in check_allowed completed. | Jozsef Kadlecsik | 2010-12-18 | 1 | -22/+25 |
| | | | | | There was still some other incorrect usage of 'enum ipset_cmd' and 'enum ipset_adt' - corrected. | ||||
* | Try to solve PKG_CHECK_MODULES issue | Jozsef Kadlecsik | 2010-12-18 | 1 | -0/+1 |
| | | | | | | | | | | Rob Sterenborg reported, that on CentOs configure can fail with ./configure: line 11510: syntax error near unexpected token `[libmnl],' ./configure: line 11510: `PKG_CHECK_MODULES([libmnl], [libmnl >= 1])' Therefore I added 'aclocal -I m4' to autogen.sh, hoping that it solves the issue. | ||||
* | Fix incorrect comparison in check_allowed | Jozsef Kadlecsik | 2010-12-18 | 1 | -1/+1 |
| | | | | Wrong enum type was used in the comparison, reported by Jan Engelhardt. | ||||
* | Fix Kbuild for me to delete backup files | Jozsef Kadlecsik | 2010-12-17 | 1 | -1/+1 |
| | |||||
* | Initialize ChangeLog for the new releasev5.0 | Jozsef Kadlecsik | 2010-12-17 | 1 | -0/+3 |
| | |||||
* | Add tests to check hash:ip,port,net type | Jozsef Kadlecsik | 2010-12-17 | 4 | -5/+58 |
| | |||||
* | Match command prefixes | Jozsef Kadlecsik | 2010-12-17 | 1 | -1/+1 |
| | | | | | Match not only the first letter or the full command name, but an arbitrary prefix too. | ||||
* | Add more test to check adding/deleting multiple entries. | Jozsef Kadlecsik | 2010-12-17 | 8 | -0/+46 |
| | |||||
* | Updated manpage to reflect wider input possibilities in the ipset tool. | Jozsef Kadlecsik | 2010-12-17 | 1 | -41/+45 |
| |