summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/icmp6.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-01-16 20:42:01 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-01-16 20:42:01 +0100
commitccf72da47d29772af51b0b348d2845fbbbd8a881 (patch)
tree6a13ebadb6cea451066092367f1b691a68f06d7b /sys/src/9/ip/icmp6.c
parent2bd59d9cb3a50d0083ed9b8bda6970df62e39bca (diff)
set router R-flag when sendra is active for neighbor advertisement
windows 7 just drops the default router when it tries to probe for router reachability but gets a neighbor avertisement from the router with the router bit clear. so set the R-flag when sendra is active, which implies that we are a router.
Diffstat (limited to 'sys/src/9/ip/icmp6.c')
-rw-r--r--sys/src/9/ip/icmp6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/ip/icmp6.c b/sys/src/9/ip/icmp6.c
index 7c9e637b8..5557c6042 100644
--- a/sys/src/9/ip/icmp6.c
+++ b/sys/src/9/ip/icmp6.c
@@ -796,6 +796,8 @@ icmpiput6(Proto *icmp, Ipifc *ipifc, Block *bp)
case NbrSolicit:
np = (Ndpkt*) p;
pktflags = 0;
+ if(ipifc->sendra6)
+ pktflags |= Rflag;
switch (targettype(icmp->f, ipifc, np->target)) {
case Tunirany:
pktflags |= Oflag;