X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fnetfilter%2Fip_conntrack_proto_gre.c;fp=net%2Fipv4%2Fnetfilter%2Fip_conntrack_proto_gre.c;h=56794797d55b9eedce61b7542ceae00a627d68ae;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=4ee016c427b4e4c0b573d7d0c6ba22799391b318;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/net/ipv4/netfilter/ip_conntrack_proto_gre.c b/net/ipv4/netfilter/ip_conntrack_proto_gre.c index 4ee016c42..56794797d 100644 --- a/net/ipv4/netfilter/ip_conntrack_proto_gre.c +++ b/net/ipv4/netfilter/ip_conntrack_proto_gre.c @@ -23,6 +23,7 @@ * */ +#include #include #include #include @@ -76,10 +77,10 @@ static inline int gre_key_cmpfn(const struct ip_ct_gre_keymap *km, } /* look up the source key for a given tuple */ -static __be16 gre_keymap_lookup(struct ip_conntrack_tuple *t) +static u_int32_t gre_keymap_lookup(struct ip_conntrack_tuple *t) { struct ip_ct_gre_keymap *km; - __be16 key = 0; + u_int32_t key = 0; read_lock_bh(&ip_ct_gre_lock); km = LIST_FIND(&gre_keymap_list, gre_key_cmpfn, @@ -189,7 +190,7 @@ static int gre_pkt_to_tuple(const struct sk_buff *skb, struct ip_conntrack_tuple *tuple) { struct gre_hdr_pptp _pgrehdr, *pgrehdr; - __be16 srckey; + u_int32_t srckey; struct gre_hdr _grehdr, *grehdr; /* first only delinearize old RFC1701 GRE header */