X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=net%2Fipv6%2Fexthdrs.c;h=07a7d65a7cb6757bdac702b01e8284ad2402bf46;hb=c69d0a15d240a854f6d620ac7d5238a41883a920;hp=473f628f9f203d2e0c58466f32603ce50a330402;hpb=007f6c3a63e0831ff5a34bde072db08e917134c8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 473f628f9f20..07a7d65a7cb6 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -553,7 +553,8 @@ static bool ipv6_hop_ra(struct sk_buff *skb, int optoff) const unsigned char *nh = skb_network_header(skb); if (nh[optoff + 1] == 2) { - IP6CB(skb)->ra = optoff; + IP6CB(skb)->flags |= IP6SKB_ROUTERALERT; + memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra)); return true; } LIMIT_NETDEBUG(KERN_DEBUG "ipv6_hop_ra: wrong RA length %d\n",