ref: 11d1947814614220a65bd5cfa7b2b891b7e25646
parent: 590bed4bf88b004942dba3c5917b24be50016b78
author: cinap_lenrek <[email protected]>
date: Thu Aug 30 17:17:54 EDT 2018
arp: interface address only specifies the interface, not the source address for route lookup
--- a/sys/src/9/ip/arp.c
+++ b/sys/src/9/ip/arp.c
@@ -401,7 +401,7 @@
if((ifc = findipifc(fs, ia, ia, Runi)) == nil)
error("no interface");
rlock(ifc);
- if(arpenter(fs, V6, ip, mac, n, ia, ifc, 0) < 0){
+ if(!ipv6local(ifc, ia, ip) || arpenter(fs, V6, ip, mac, n, ia, ifc, 0) < 0){
runlock(ifc);
error("destination unreachable");
}