[IPV6]: Bring Type 0 routing header in-line with rfc3542.
Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3874b98c65
commit
e6df439b89
@@ -406,8 +406,7 @@ ipv6_invert_rthdr(struct sock *sk, struct ipv6_rt_hdr *hdr)
|
||||
|
||||
memcpy(opt->srcrt, hdr, sizeof(*hdr));
|
||||
irthdr = (struct rt0_hdr*)opt->srcrt;
|
||||
/* Obsolete field, MBZ, when originated by us */
|
||||
irthdr->bitmap = 0;
|
||||
irthdr->reserved = 0;
|
||||
opt->srcrt->segments_left = n;
|
||||
for (i=0; i<n; i++)
|
||||
memcpy(irthdr->addr+i, rthdr->addr+(n-1-i), 16);
|
||||
|
Reference in New Issue
Block a user