diff options
author | Ahmed Abdelsalam <amsalam20@gmail.com> | 2017-08-30 10:50:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-31 00:19:25 +0200 |
commit | 5829d70b0b6cd055e7a9af3abe573927e919e30b (patch) | |
tree | 0e47f759557d431c89cf79fef24d81667fcb52cd /drivers | |
parent | Merge branch 'mvpp2-comphy' (diff) | |
download | linux-5829d70b0b6cd055e7a9af3abe573927e919e30b.tar.xz linux-5829d70b0b6cd055e7a9af3abe573927e919e30b.zip |
ipv6: sr: fix get_srh() to comply with IPv6 standard "RFC 8200"
IPv6 packet may carry more than one extension header, and IPv6 nodes must
accept and attempt to process extension headers in any order and occurring
any number of times in the same packet. Hence, there should be no
assumption that Segment Routing extension header is to appear immediately
after the IPv6 header.
Moreover, section 4.1 of RFC 8200 gives a recommendation on the order of
appearance of those extension headers within an IPv6 packet. According to
this recommendation, Segment Routing extension header should appear after
Hop-by-Hop and Destination Options headers (if they present).
This patch fixes the get_srh(), so it gets the segment routing header
regardless of its position in the chain of the extension headers in IPv6
packet, and makes sure that the IPv6 routing extension header is of Type 4.
Signed-off-by: Ahmed Abdelsalam <amsalam20@gmail.com>
Acked-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions