History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next

Pablo Neira Ayuso says: ==================== Netfilter updates for net-next The following batch contains netfilter updates for net-next. Basically, enhancements for xt_recent, skip zeroing of timer in conntrack, fix linking problem with recent redirect support for nf_tables, ipset updates and a couple of cleanups. More specifically, they are: 1) Rise maximum number per IP address to be remembered in xt_recent while retaining backward compatibility, from Florian Westphal. 2) Skip zeroing timer area in nf_conn objects, also from Florian. 3) Inspect IPv4 and IPv6 traffic from the bridge to allow filtering using using meta l4proto and transport layer header, from Alvaro Neira. 4) Fix linking problems in the new redirect support when CONFIG_IPV6=n and IP6_NF_IPTABLES=n. And ipset updates from Jozsef Kadlecsik: 5) Support updating element extensions when the set is full (fixes netfilter bugzilla id 880). 6) Fix set match with 32-bits userspace / 64-bits kernel. 7) Indicate explicitly when /0 networks are supported in ipset. 8) Simplify cidr handling for hash:*net* types. 9) Allocate the proper size of memory when /0 networks are supported. 10) Explicitly add padding elements to hash:net,net and hash:net,port, because the elements must be u32 sized for the used hash function. Jozsef is also cooking ipset RCU conversion which should land soon if they reach the merge window in time. ====================

David S. Miller committed 11 years ago

Commit 244ebd92 parents ddd5c50 cac376328 files · +372 −254Browse files

Showing the changes to include/uapi/linux (2 of 28 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/netfilter/ipset/ip_set.h +7 −1
  2. include/uapi/linux/netfilter/xt_set.h +11 −2
include/uapi/linux/netfilter/ipset/ip_set.h+7−1
@@ -256,11 +256,17 @@ enum { · 255 unmodified lines
256256 IPSET_COUNTER_GT,
257257 };
258258
259−struct ip_set_counter_match {
259+/* Backward compatibility for set match v3 */
260+struct ip_set_counter_match0 {
260261 __u8 op;
261262 __u64 value;
262263 };
263264
265+struct ip_set_counter_match {
266+ __aligned_u64 value;
267+ __u8 op;
268+};
269+
264270 /* Interface to iptables/ip6tables */
265271
266272 #define SO_IP_SET 83
include/uapi/linux/netfilter/xt_set.h+11−2
@@ -66,8 +66,8 @@ struct xt_set_info_target_v2 { · 65 unmodified lines
6666
6767 struct xt_set_info_match_v3 {
6868 struct xt_set_info match_set;
69− struct ip_set_counter_match packets;
70− struct ip_set_counter_match bytes;
69+ struct ip_set_counter_match0 packets;
70+ struct ip_set_counter_match0 bytes;
7171 __u32 flags;
7272 };
7373
@@ -81,4 +81,13 @@ struct xt_set_info_target_v3 { · 7 unmodified lines
8181 __u32 timeout;
8282 };
8383
84+/* Revision 4 match */
85+
86+struct xt_set_info_match_v4 {
87+ struct xt_set_info match_set;
88+ struct ip_set_counter_match packets;
89+ struct ip_set_counter_match bytes;
90+ __u32 flags;
91+};
92+
8493 #endif /*_XT_SET_H*/