summaryrefslogtreecommitdiff
path: root/include/linux/netfilter/nf_conntrack_proto_gre.h
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2016-08-25 23:08:47 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-09-07 10:36:52 +0200
commitc579a9e7d58f66030a144c7a33cc9bdf827a4b6d (patch)
tree6f39337e5813c1cea79cb3317225b7bb03465a71 /include/linux/netfilter/nf_conntrack_proto_gre.h
parentecc6569f3503b39f45bc6b86197b5e0a8533fb72 (diff)
netfilter: gre: Use consistent GRE and PTTP header structure instead of the ones defined by netfilter
There are two existing strutures which defines the GRE and PPTP header. So use these two structures instead of the ones defined by netfilter to keep consitent with other codes. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter/nf_conntrack_proto_gre.h')
-rw-r--r--include/linux/netfilter/nf_conntrack_proto_gre.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/include/linux/netfilter/nf_conntrack_proto_gre.h b/include/linux/netfilter/nf_conntrack_proto_gre.h
index 0189747f2691..dee0acd0dd31 100644
--- a/include/linux/netfilter/nf_conntrack_proto_gre.h
+++ b/include/linux/netfilter/nf_conntrack_proto_gre.h
@@ -4,48 +4,6 @@
#include <net/gre.h>
#include <net/pptp.h>
-/* GRE PROTOCOL HEADER */
-
-/* GRE is a mess: Four different standards */
-struct gre_hdr {
-#if defined(__LITTLE_ENDIAN_BITFIELD)
- __u16 rec:3,
- srr:1,
- seq:1,
- key:1,
- routing:1,
- csum:1,
- version:3,
- reserved:4,
- ack:1;
-#elif defined(__BIG_ENDIAN_BITFIELD)
- __u16 csum:1,
- routing:1,
- key:1,
- seq:1,
- srr:1,
- rec:3,
- ack:1,
- reserved:4,
- version:3;
-#else
-#error "Adjust your <asm/byteorder.h> defines"
-#endif
- __be16 protocol;
-};
-
-/* modified GRE header for PPTP */
-struct gre_hdr_pptp {
- __u8 flags; /* bitfield */
- __u8 version; /* should be GRE_VERSION_PPTP */
- __be16 protocol; /* should be GRE_PROTOCOL_PPTP */
- __be16 payload_len; /* size of ppp payload, not inc. gre header */
- __be16 call_id; /* peer's call_id for this session */
- __be32 seq; /* sequence number. Present if S==1 */
- __be32 ack; /* seq number of highest packet received by */
- /* sender in this session */
-};
-
struct nf_ct_gre {
unsigned int stream_timeout;
unsigned int timeout;