|
|
@@ -120,6 +120,7 @@ static int gue_udp_recv(struct sock *sk, struct sk_buff *skb)
|
|
|
struct guehdr *guehdr;
|
|
|
void *data;
|
|
|
u16 doffset = 0;
|
|
|
+ u8 proto_ctype;
|
|
|
|
|
|
if (!fou)
|
|
|
return 1;
|
|
|
@@ -211,13 +212,14 @@ static int gue_udp_recv(struct sock *sk, struct sk_buff *skb)
|
|
|
if (unlikely(guehdr->control))
|
|
|
return gue_control_message(skb, guehdr);
|
|
|
|
|
|
+ proto_ctype = guehdr->proto_ctype;
|
|
|
__skb_pull(skb, sizeof(struct udphdr) + hdrlen);
|
|
|
skb_reset_transport_header(skb);
|
|
|
|
|
|
if (iptunnel_pull_offloads(skb))
|
|
|
goto drop;
|
|
|
|
|
|
- return -guehdr->proto_ctype;
|
|
|
+ return -proto_ctype;
|
|
|
|
|
|
drop:
|
|
|
kfree_skb(skb);
|