-
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.
netfilter: synproxy: add common uapi for SYNPROXY infrastructure
This new UAPI file is going to be used by the xt and nft common SYNPROXY infrastructure. It is needed to avoid duplicated code. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
- Loading branch information
Fernando Fernandez Mancera
authored and
Pablo Neira Ayuso
committed
Jun 17, 2019
1 parent
667ec21
commit 5fcc88e
Showing
2 changed files
with
26 additions
and
11 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
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