-
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 branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
…t/pablo/nf-next Pablo Neira Ayuso says: ==================== This batch contains one single patch with the l2tp match for xtables, from James Chapman. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
5 changed files
with
393 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef _LINUX_NETFILTER_XT_L2TP_H | ||
#define _LINUX_NETFILTER_XT_L2TP_H | ||
|
||
#include <linux/types.h> | ||
|
||
enum xt_l2tp_type { | ||
XT_L2TP_TYPE_CONTROL, | ||
XT_L2TP_TYPE_DATA, | ||
}; | ||
|
||
/* L2TP matching stuff */ | ||
struct xt_l2tp_info { | ||
__u32 tid; /* tunnel id */ | ||
__u32 sid; /* session id */ | ||
__u8 version; /* L2TP protocol version */ | ||
__u8 type; /* L2TP packet type */ | ||
__u8 flags; /* which fields to match */ | ||
}; | ||
|
||
enum { | ||
XT_L2TP_TID = (1 << 0), /* match L2TP tunnel id */ | ||
XT_L2TP_SID = (1 << 1), /* match L2TP session id */ | ||
XT_L2TP_VERSION = (1 << 2), /* match L2TP protocol version */ | ||
XT_L2TP_TYPE = (1 << 3), /* match L2TP packet type */ | ||
}; | ||
|
||
#endif /* _LINUX_NETFILTER_XT_L2TP_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.