git: 9front

Download patch

ref: 0b546cc0faa7fbb5bebd9c4947c9f8cecca68464
parent: 6080376a862bd671d33e7b4283cddc5246087dc3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jan 16 15:42:01 EST 2018

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.

--- a/sys/src/9/ip/icmp6.c
+++ b/sys/src/9/ip/icmp6.c
@@ -796,6 +796,8 @@
 	case NbrSolicit:
 		np = (Ndpkt*) p;
 		pktflags = 0;
+		if(ipifc->sendra6)
+			pktflags |= Rflag;
 		switch (targettype(icmp->f, ipifc, np->target)) {
 		case Tunirany:
 			pktflags |= Oflag;
--