-
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 updates for net-next The following patches contains Netfilter updates for net-next: 1) .br_defrag indirection depends on CONFIG_NF_DEFRAG_IPV6, from wenxu. 2) Remove unnecessary memset() in ipset, from Florent Fourcot. 3) Merge control plane addition and deletion in ipset, also from Florent. 4) A few missing check for nla_parse() in ipset, from Aditya Pakki and Jozsef Kadlecsik. 5) Incorrect cleanup in error path of xt_set version 3, from Jozsef. 6) Memory accounting problems when resizing in ipset, from Stefano Brivio. 7) Jozsef updates his email to @netfilter.org, this batch comes with a conflict resolution with recent SPDX header updates. 8) Add to create custom conntrack expectations via nftables, from Stephane Veyret. 9) A lookup optimization for conntrack, from Florian Westphal. 10) Check for supported flags in xt_owner. 11) Support for pernet sysctl in br_netfilter, patches from Christian Brauner. 12) Patches to move common synproxy infrastructure to nf_synproxy.c, to prepare the synproxy support for nf_tables, patches from Fernando Fernandez Mancera. 13) Support to restore expiration time in set element, from Laura Garcia. 14) Fix recent rewrite of netfilter IPv6 to avoid indirections when CONFIG_IPV6 is unset, from Arnd Bergmann. 15) Always reset vlan tag on skbuff fraglist when refragmenting in bridge conntrack, from wenxu. 16) Support to match IPv4 options in nf_tables, from Stephen Suryaputra. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
58 changed files
with
1,611 additions
and
1,127 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
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,44 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef _NF_SYNPROXY_SHARED_H | ||
#define _NF_SYNPROXY_SHARED_H | ||
|
||
#include <linux/module.h> | ||
#include <linux/skbuff.h> | ||
#include <net/ip6_checksum.h> | ||
#include <net/ip6_route.h> | ||
#include <net/tcp.h> | ||
|
||
#include <net/netfilter/nf_conntrack_seqadj.h> | ||
#include <net/netfilter/nf_conntrack_synproxy.h> | ||
|
||
void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb, | ||
const struct tcphdr *th, | ||
const struct synproxy_options *opts); | ||
|
||
bool synproxy_recv_client_ack(struct net *net, | ||
const struct sk_buff *skb, | ||
const struct tcphdr *th, | ||
struct synproxy_options *opts, u32 recv_seq); | ||
|
||
unsigned int ipv4_synproxy_hook(void *priv, struct sk_buff *skb, | ||
const struct nf_hook_state *nhs); | ||
int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net); | ||
void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net); | ||
|
||
#if IS_ENABLED(CONFIG_IPV6) | ||
void synproxy_send_client_synack_ipv6(struct net *net, | ||
const struct sk_buff *skb, | ||
const struct tcphdr *th, | ||
const struct synproxy_options *opts); | ||
|
||
bool synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb, | ||
const struct tcphdr *th, | ||
struct synproxy_options *opts, u32 recv_seq); | ||
|
||
unsigned int ipv6_synproxy_hook(void *priv, struct sk_buff *skb, | ||
const struct nf_hook_state *nhs); | ||
int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net); | ||
void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net); | ||
#endif /* CONFIG_IPV6 */ | ||
|
||
#endif /* _NF_SYNPROXY_SHARED_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
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,19 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef _NF_SYNPROXY_H | ||
#define _NF_SYNPROXY_H | ||
|
||
#include <linux/types.h> | ||
|
||
#define NF_SYNPROXY_OPT_MSS 0x01 | ||
#define NF_SYNPROXY_OPT_WSCALE 0x02 | ||
#define NF_SYNPROXY_OPT_SACK_PERM 0x04 | ||
#define NF_SYNPROXY_OPT_TIMESTAMP 0x08 | ||
#define NF_SYNPROXY_OPT_ECN 0x10 | ||
|
||
struct nf_synproxy_info { | ||
__u8 options; | ||
__u8 wscale; | ||
__u16 mss; | ||
}; | ||
|
||
#endif /* _NF_SYNPROXY_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
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.