|
@@ -200,7 +200,7 @@ static bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
|
|
|
|
|
|
/* first only delinearize old RFC1701 GRE header */
|
|
/* first only delinearize old RFC1701 GRE header */
|
|
grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr);
|
|
grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr);
|
|
- if (!grehdr || grehdr->version != GRE_VERSION_PPTP) {
|
|
|
|
|
|
+ if (!grehdr || grehdr->version != ntohs(GRE_VERSION_1)) {
|
|
/* try to behave like "nf_conntrack_proto_generic" */
|
|
/* try to behave like "nf_conntrack_proto_generic" */
|
|
tuple->src.u.all = 0;
|
|
tuple->src.u.all = 0;
|
|
tuple->dst.u.all = 0;
|
|
tuple->dst.u.all = 0;
|
|
@@ -212,7 +212,7 @@ static bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
|
|
if (!pgrehdr)
|
|
if (!pgrehdr)
|
|
return true;
|
|
return true;
|
|
|
|
|
|
- if (ntohs(grehdr->protocol) != GRE_PROTOCOL_PPTP) {
|
|
|
|
|
|
+ if (grehdr->protocol != GRE_PROTO_PPP) {
|
|
pr_debug("GRE_VERSION_PPTP but unknown proto\n");
|
|
pr_debug("GRE_VERSION_PPTP but unknown proto\n");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|