diff --git a/doc/changelog.txt b/doc/changelog.txt index f0f6b0b..a37db39 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -10,6 +10,7 @@ Changes: - xt_ECHO: now calculates UDP checksum - Linux kernel versions below 2.6.32 are no longer officially supported, and will not be part of compilation testing. +- update to ipset 6.10 Enhancements: - xt_ECHO: IPv6 support diff --git a/extensions/ipset-6/Kbuild b/extensions/ipset-6/Kbuild index a3c51f9..f54e8a1 100644 --- a/extensions/ipset-6/Kbuild +++ b/extensions/ipset-6/Kbuild @@ -8,4 +8,4 @@ obj-m += ip_set_hash_netiface.o ip_set_hash_netport.o ip_set_list_set.o ip_set-y := ip_set_core.o ip_set_getport.o pfxlen.o -EXTRA_CFLAGS += -DLCONFIG_IP_SET_MAX=256 -DIPSET_EXTERNAL_MODULE=1 +EXTRA_CFLAGS += -DLCONFIG_IP_SET_MAX=256 diff --git a/extensions/ipset-6/ip_set_core.c b/extensions/ipset-6/ip_set_core.c index 6f7f9cb..9e446a9 100644 --- a/extensions/ipset-6/ip_set_core.c +++ b/extensions/ipset-6/ip_set_core.c @@ -17,7 +17,7 @@ #include #include #include -#ifdef IPSET_EXTERNAL_MODULE +#ifndef IPSET_IN_KERNEL_TREE #include #endif #include diff --git a/extensions/ipset-6/ip_set_hash_ipport.c b/extensions/ipset-6/ip_set_hash_ipport.c index 0a96b5a..24d833f 100644 --- a/extensions/ipset-6/ip_set_hash_ipport.c +++ b/extensions/ipset-6/ip_set_hash_ipport.c @@ -158,7 +158,7 @@ hash_ipport4_uadt(struct ip_set *set, struct nlattr *tb[], const struct ip_set_hash *h = set->data; ipset_adtfn adtfn = set->variant->adt[adt]; struct hash_ipport4_elem data = { }; - u32 ip, ip_to, p = 0, port, port_to; + u32 ip, ip_to = 0, p = 0, port, port_to; u32 timeout = h->timeout; bool with_ports = false; int ret; diff --git a/extensions/ipset-6/ip_set_hash_ipportip.c b/extensions/ipset-6/ip_set_hash_ipportip.c index 6dd0556..d89a55a 100644 --- a/extensions/ipset-6/ip_set_hash_ipportip.c +++ b/extensions/ipset-6/ip_set_hash_ipportip.c @@ -162,7 +162,7 @@ hash_ipportip4_uadt(struct ip_set *set, struct nlattr *tb[], const struct ip_set_hash *h = set->data; ipset_adtfn adtfn = set->variant->adt[adt]; struct hash_ipportip4_elem data = { }; - u32 ip, ip_to, p = 0, port, port_to; + u32 ip, ip_to = 0, p = 0, port, port_to; u32 timeout = h->timeout; bool with_ports = false; int ret; diff --git a/extensions/ipset-6/ip_set_hash_ipportnet.c b/extensions/ipset-6/ip_set_hash_ipportnet.c index 57b94cc..80daf8f 100644 --- a/extensions/ipset-6/ip_set_hash_ipportnet.c +++ b/extensions/ipset-6/ip_set_hash_ipportnet.c @@ -184,7 +184,7 @@ hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[], const struct ip_set_hash *h = set->data; ipset_adtfn adtfn = set->variant->adt[adt]; struct hash_ipportnet4_elem data = { .cidr = HOST_MASK }; - u32 ip, ip_to, p = 0, port, port_to; + u32 ip, ip_to = 0, p = 0, port, port_to; u32 ip2_from = 0, ip2_to, ip2_last, ip2; u32 timeout = h->timeout; bool with_ports = false; diff --git a/extensions/ipset-6/libipset/parse.c b/extensions/ipset-6/libipset/parse.c index 241d5ae..eeb253c 100644 --- a/extensions/ipset-6/libipset/parse.c +++ b/extensions/ipset-6/libipset/parse.c @@ -307,7 +307,7 @@ int ipset_parse_tcp_port(struct ipset_session *session, enum ipset_opt opt, const char *str) { - return ipset_parse_tcpudp_port(session, opt, str, "TCP"); + return ipset_parse_tcpudp_port(session, opt, str, "tcp"); } /** @@ -330,7 +330,7 @@ ipset_parse_single_tcp_port(struct ipset_session *session, assert(opt == IPSET_OPT_PORT || opt == IPSET_OPT_PORT_TO); assert(str); - return ipset_parse_port(session, opt, str, "TCP"); + return ipset_parse_port(session, opt, str, "tcp"); } /** @@ -391,8 +391,8 @@ parse_icmp_typecode(struct ipset_session *session, str, family); } *a++ = '\0'; - if ((err = string_to_u8(session, a, &type)) != 0 || - (err = string_to_u8(session, tmp, &code)) != 0) + if ((err = string_to_u8(session, tmp, &type)) != 0 || + (err = string_to_u8(session, a, &code)) != 0) goto error; typecode = (type << 8) | code; diff --git a/extensions/ipset-6/src/ipset.c b/extensions/ipset-6/src/ipset.c index b4caada..15d390f 100644 --- a/extensions/ipset-6/src/ipset.c +++ b/extensions/ipset-6/src/ipset.c @@ -24,7 +24,7 @@ #include /* STREQ */ static char program_name[] = "ipset"; -static char program_version[] = "6.9.1-genl-xta"; +static char program_version[] = "6.10-genl-xta"; static struct ipset_session *session; static uint32_t restore_line;