-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Basically, a new extension for ip6tables, simplification work of nf_tables that saves us 500 LoC, allow raw table registration before defragmentation, conversion of the SNMP helper to use the ASN.1 code generator, unique 64-bit handle for all nf_tables objects and fixes to address fallout from previous nf-next batch. More specifically, they are: 1) Seven patches to remove family abstraction layer (struct nft_af_info) in nf_tables, this simplifies our codebase and it saves us 64 bytes per net namespace. 2) Add IPv6 segment routing header matching for ip6tables, from Ahmed Abdelsalam. 3) Allow to register iptable_raw table before defragmentation, some people do not want to waste cycles on defragmenting traffic that is going to be dropped, hence add a new module parameter to enable this behaviour in iptables and ip6tables. From Subash Abhinov Kasiviswanathan. This patch needed a couple of follow up patches to get things tidy from Arnd Bergmann. 4) SNMP helper uses the ASN.1 code generator, from Taehee Yoo. Several patches for this helper to prepare this change are also part of this patch series. 5) Add 64-bit handles to uniquely objects in nf_tables, from Harsha Sharma. 6) Remove log message that several netfilter subsystems print at boot/load time. 7) Restore x_tables module autoloading, that got broken in a previous patch to allow singleton NAT hook callback registration per hook spot, from Florian Westphal. Moreover, return EBUSY to report that the singleton NAT hook slot is already in instead. 8) Several fixes for the new nf_tables flowtable representation, including incorrect error check after nf_tables_flowtable_lookup(), missing Kconfig dependencies that lead to build breakage and missing initialization of priority and hooknum in flowtable object. 9) Missing NETFILTER_FAMILY_ARP dependency in Kconfig for the clusterip target. This is due to recent updates in the core to shrink the hook array size and compile it out if no specific family is enabled via .config file. Patch from Florian Westphal. 10) Remove duplicated include header files, from Wei Yongjun. 11) Sparse warning fix for the NFPROTO_INET handling from the core due to missing static function definition, also from Wei Yongjun. 12) Restore ICMPv6 Parameter Problem error reporting when defragmentation fails, from Subash Abhinov Kasiviswanathan. 13) Remove obsolete owner field initialization from struct file_operations, patch from Alexey Dobriyan. 14) Use boolean datatype where needed in the Netfilter codebase, from Gustavo A. R. Silva. 15) Remove double semicolon in dynset nf_tables expression, from Luis de Bethencourt. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
62 changed files
with
1,241 additions
and
2,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
#ifndef _IP6T_SRH_H | ||
#define _IP6T_SRH_H | ||
|
||
#include <linux/types.h> | ||
#include <linux/netfilter.h> | ||
|
||
/* Values for "mt_flags" field in struct ip6t_srh */ | ||
#define IP6T_SRH_NEXTHDR 0x0001 | ||
#define IP6T_SRH_LEN_EQ 0x0002 | ||
#define IP6T_SRH_LEN_GT 0x0004 | ||
#define IP6T_SRH_LEN_LT 0x0008 | ||
#define IP6T_SRH_SEGS_EQ 0x0010 | ||
#define IP6T_SRH_SEGS_GT 0x0020 | ||
#define IP6T_SRH_SEGS_LT 0x0040 | ||
#define IP6T_SRH_LAST_EQ 0x0080 | ||
#define IP6T_SRH_LAST_GT 0x0100 | ||
#define IP6T_SRH_LAST_LT 0x0200 | ||
#define IP6T_SRH_TAG 0x0400 | ||
#define IP6T_SRH_MASK 0x07FF | ||
|
||
/* Values for "mt_invflags" field in struct ip6t_srh */ | ||
#define IP6T_SRH_INV_NEXTHDR 0x0001 | ||
#define IP6T_SRH_INV_LEN_EQ 0x0002 | ||
#define IP6T_SRH_INV_LEN_GT 0x0004 | ||
#define IP6T_SRH_INV_LEN_LT 0x0008 | ||
#define IP6T_SRH_INV_SEGS_EQ 0x0010 | ||
#define IP6T_SRH_INV_SEGS_GT 0x0020 | ||
#define IP6T_SRH_INV_SEGS_LT 0x0040 | ||
#define IP6T_SRH_INV_LAST_EQ 0x0080 | ||
#define IP6T_SRH_INV_LAST_GT 0x0100 | ||
#define IP6T_SRH_INV_LAST_LT 0x0200 | ||
#define IP6T_SRH_INV_TAG 0x0400 | ||
#define IP6T_SRH_INV_MASK 0x07FF | ||
|
||
/** | ||
* struct ip6t_srh - SRH match options | ||
* @ next_hdr: Next header field of SRH | ||
* @ hdr_len: Extension header length field of SRH | ||
* @ segs_left: Segments left field of SRH | ||
* @ last_entry: Last entry field of SRH | ||
* @ tag: Tag field of SRH | ||
* @ mt_flags: match options | ||
* @ mt_invflags: Invert the sense of match options | ||
*/ | ||
|
||
struct ip6t_srh { | ||
__u8 next_hdr; | ||
__u8 hdr_len; | ||
__u8 segs_left; | ||
__u8 last_entry; | ||
__u16 tag; | ||
__u16 mt_flags; | ||
__u16 mt_invflags; | ||
}; | ||
|
||
#endif /*_IP6T_SRH_H*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.