]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Process unicast packet with Router Alert by checking flag in skb.
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Sat, 22 Jun 2013 02:13:13 +0000 (11:13 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 21:47:22 +0000 (14:47 -0700)
commit306b757034ae8159c7145074e6ee83f968b39910
tree8628924f196b022395f241acec9eab9ae946b55f
parente2244db2a7359e7d0c5bab8097ff3543579974cf
ipv6: Process unicast packet with Router Alert by checking flag in skb.

Router Alert option is marked in skb.
Previously, IP6CB(skb)->ra was set to positive value for such packets.
Since commit e72f0c02 ("ipv6: Store Router Alert option in IP6CB
directly."), IP6SKB_ROUTERALERT is set in IP6CB(skb)->flags, and
the value of Router Alert option (in network byte order) is set
to IP6CB(skb)->ra for such packets.

Multicast forwarding path uses that flag and value, but unicast
forwarding path does not use the flag and misuses IP6CB(skb)->ra
value.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c