fixed a bug that IPv6 routing header does not work properly if specified from userland application
reviewed by: ume
This commit is contained in:
parent
9582cd94cb
commit
aef03e952d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123713
@ -500,7 +500,7 @@ skip_ipsec2:;
|
||||
switch (rh->ip6r_type) {
|
||||
case IPV6_RTHDR_TYPE_0:
|
||||
rh0 = (struct ip6_rthdr0 *)rh;
|
||||
addrs = (struct in6_addr *)(rh + 1);
|
||||
addrs = (struct in6_addr *)(rh0 + 1);
|
||||
|
||||
ip6->ip6_dst = *addrs;
|
||||
bcopy((caddr_t)(addrs + 1), (caddr_t)addrs,
|
||||
|
Loading…
Reference in New Issue
Block a user