History

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

Pablo Neira Ayuso says: ==================== Netfilter/IPVS updates for net-next The following patchset contains Netfilter/IPVS updates for your net-next tree: 1) No need to set ttl from reject action for the bridge family, from Taehee Yoo. 2) Use a fixed timeout for flow that are passed up from the flowtable to conntrack, from Florian Westphal. 3) More preparation patches for tproxy support for nf_tables, from Mate Eckl. 4) Remove unnecessary indirection in core IPv6 checksum function, from Florian Westphal. 5) Use nf_ct_get_tuplepr() from openvswitch, instead of opencoding it. From Florian Westphal. 6) socket match now selects socket infrastructure, instead of depending on it. From Mate Eckl. 7) Patch series to simplify conntrack tuple building/parsing from packet path and ctnetlink, from Florian Westphal. 8) Fetch timeout policy from protocol helpers, instead of doing it from core, from Florian Westphal. 9) Merge IPv4 and IPv6 protocol trackers into conntrack core, from Florian Westphal. 10) Depend on CONFIG_NF_TABLES_IPV6 and CONFIG_IP6_NF_IPTABLES respectively, instead of IPV6. Patch from Mate Eckl. 11) Add specific function for garbage collection in conncount, from Yi-Hung Wei. 12) Catch number of elements in the connlimit list, from Yi-Hung Wei. 13) Move locking to nf_conncount, from Yi-Hung Wei. 14) Series of patches to add lockless tree traversal in nf_conncount, from Yi-Hung Wei. 15) Resolve clash in matching conntracks when race happens, from Martynas Pumputis. 16) If connection entry times out, remove template entry from the ip_vs_conn_tab table to improve behaviour under flood, from Julian Anastasov. 17) Remove useless parameter from nf_ct_helper_ext_add(), from Gao feng. 18) Call abort from 2-phase commit protocol before requesting modules, make sure this is done under the mutex, from Florian Westphal. 19) Grab module reference when starting transaction, also from Florian. 20) Dynamically allocate expression info array for pre-parsing, from Florian. 21) Add per netns mutex for nf_tables, from Florian Westphal. 22) A couple of patches to simplify and refactor nf_osf code to prepare for nft_osf support. 23) Break evaluation on missing socket, from Mate Eckl. 24) Allow to match socket mark from nft_socket, from Mate Eckl. 25) Remove dependency on nf_defrag_ipv6, now that IPv6 tracker is built-in into nf_conntrack. From Florian Westphal. ====================

David S. Miller committed 8 years ago

Commit 99d20a42 parents c4c5551 24c458c72 files · +2029 −2408Browse files

Showing the changes to include/uapi/linux (3 of 72 files). Show all

Unified · Split

3 files
  1. include/uapi/linux/netfilter/nf_osf.h +11 −0
  2. include/uapi/linux/netfilter/nf_tables.h +3 −1
  3. include/uapi/linux/netfilter/xt_osf.h +2 −8
include/uapi/linux/netfilter/nf_osf.h+11−0
@@ -16,9 +16,14 @@ · 15 unmodified lines
1616
1717 #define NF_OSF_TTL_TRUE 0 /* True ip and fingerprint TTL comparison */
1818
19+/* Check if ip TTL is less than fingerprint one */
20+#define NF_OSF_TTL_LESS 1
21+
1922 /* Do not compare ip and fingerprint TTL at all */
2023 #define NF_OSF_TTL_NOCHECK 2
2124
25+#define NF_OSF_FLAGMASK (NF_OSF_GENRE | NF_OSF_TTL | \
26+ NF_OSF_LOG | NF_OSF_INVERT)
2227 /* Wildcard MSS (kind of).
2328 * It is used to implement a state machine for the different wildcard values
2429 * of the MSS and window sizes.
@@ -83,4 +88,10 @@ enum iana_options { · 58 unmodified lines
8388 OSFOPT_EMPTY = 255,
8489 };
8590
91+enum nf_osf_attr_type {
92+ OSF_ATTR_UNSPEC,
93+ OSF_ATTR_FINGER,
94+ OSF_ATTR_MAX,
95+};
96+
8697 #endif /* _NF_OSF_H */
include/uapi/linux/netfilter/nf_tables.h+3−1
@@ -921,10 +921,12 @@ enum nft_socket_attributes { · 920 unmodified lines
921921 /*
922922 * enum nft_socket_keys - nf_tables socket expression keys
923923 *
924− * @NFT_SOCKET_TRANSPARENT: Value of the IP(V6)_TRANSPARENT socket option_
924+ * @NFT_SOCKET_TRANSPARENT: Value of the IP(V6)_TRANSPARENT socket option
925+ * @NFT_SOCKET_MARK: Value of the socket mark
925926 */
926927 enum nft_socket_keys {
927928 NFT_SOCKET_TRANSPARENT,
929+ NFT_SOCKET_MARK,
928930 __NFT_SOCKET_MAX
929931 };
930932 #define NFT_SOCKET_MAX (__NFT_SOCKET_MAX - 1)
include/uapi/linux/netfilter/xt_osf.h+2−8
@@ -37,8 +37,7 @@ · 36 unmodified lines
3737
3838 #define XT_OSF_TTL_TRUE NF_OSF_TTL_TRUE
3939 #define XT_OSF_TTL_NOCHECK NF_OSF_TTL_NOCHECK
40−
41−#define XT_OSF_TTL_LESS 1 /* Check if ip TTL is less than fingerprint one */
40+#define XT_OSF_TTL_LESS NF_OSF_TTL_LESS
4241
4342 #define xt_osf_wc nf_osf_wc
4443 #define xt_osf_opt nf_osf_opt
@@ -47,6 +46,7 @@ · 2 unmodified lines
4746 #define xt_osf_finger nf_osf_finger
4847 #define xt_osf_nlmsg nf_osf_nlmsg
4948
49+#define xt_osf_attr_type nf_osf_attr_type
5050 /*
5151 * Add/remove fingerprint from the kernel.
5252 */
@@ -56,10 +56,4 @@ enum xt_osf_msg_types { · 3 unmodified lines
5656 OSF_MSG_MAX,
5757 };
5858
59−enum xt_osf_attr_type {
60− OSF_ATTR_UNSPEC,
61− OSF_ATTR_FINGER,
62− OSF_ATTR_MAX,
63−};
64−
6559 #endif /* _XT_OSF_H */