linux/net/netfilter/ipset
Jozsef Kadlecsik 724f32699a netfilter: ipset: allocate the proper memory for the generic hash structure
Because a single create function is emitted for every hash type,
from the IPv4 and IPv6 generic hash structure definitions the last
one, i.e. the IPv6 was in effect for IPv4 too. Use the proper size
when allocating the structure. Comment properly that because create()
refers to elements of the generic hash structure, all referred ones
must come before the IPv4/IPv6 dependent 'next' member.

Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
History 2026-07-08 15:33:44 +02:00
..
ip_set_bitmap_gen.h netfilter: ipset: Don't use test_bit() in lockless RCU readers in bitmap types 2026-06-21 00:18:26 +02:00
ip_set_bitmap_ip.c netfilter: ipset: Don't use test_bit() in lockless RCU readers in bitmap types 2026-06-21 00:18:26 +02:00
ip_set_bitmap_ipmac.c netfilter: ipset: Don't use test_bit() in lockless RCU readers in bitmap types 2026-06-21 00:18:26 +02:00
ip_set_bitmap_port.c netfilter: ipset: Don't use test_bit() in lockless RCU readers in bitmap types 2026-06-21 00:18:26 +02:00
ip_set_core.c netfilter: ipset: fix race between dump and ip_set_list resize 2026-06-30 06:37:11 +02:00
ip_set_getport.c netfilter: ipset: move ip_set_get_ip_port() to ip_set_bitmap_port.c. 2019-10-07 23:59:02 +02:00
ip_set_hash_gen.h netfilter: ipset: allocate the proper memory for the generic hash structure 2026-07-08 15:33:44 +02:00
ip_set_hash_ip.c netfilter: ipset: Rework long task execution when adding/deleting entries 2023-01-02 15:10:05 +01:00
ip_set_hash_ipmac.c netfilter: require Ethernet MAC header before using eth_hdr() 2026-04-10 12:16:27 +02:00
ip_set_hash_ipmark.c netfilter: ipset: stop hash:* range iteration at end 2026-05-16 13:21:15 +02:00
ip_set_hash_ipport.c netfilter: ipset: stop hash:* range iteration at end 2026-05-16 13:21:15 +02:00
ip_set_hash_ipportip.c netfilter: ipset: stop hash:* range iteration at end 2026-05-16 13:21:15 +02:00
ip_set_hash_ipportnet.c netfilter: ipset: stop hash:* range iteration at end 2026-05-16 13:21:15 +02:00
ip_set_hash_mac.c netfilter: require Ethernet MAC header before using eth_hdr() 2026-04-10 12:16:27 +02:00
ip_set_hash_net.c netfilter: ipset: Rework long task execution when adding/deleting entries 2023-01-02 15:10:05 +01:00
ip_set_hash_netiface.c netfilter: propagate net to nf_bridge_get_physindev 2024-01-17 12:02:48 +01:00
ip_set_hash_netnet.c netfilter: ipset: Rework long task execution when adding/deleting entries 2023-01-02 15:10:05 +01:00
ip_set_hash_netport.c netfilter: ipset: Rework long task execution when adding/deleting entries 2023-01-02 15:10:05 +01:00
ip_set_hash_netportnet.c netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c 2023-09-06 18:09:12 +02:00
ip_set_list_set.c netfilter: ipset: use nla_strcmp for IPSET_ATTR_NAME attr 2026-04-01 11:55:29 +02:00
Kconfig netfilter: add option for GCOV profiling 2026-05-24 22:55:47 +02:00
Makefile netfilter: add option for GCOV profiling 2026-05-24 22:55:47 +02:00
pfxlen.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00