shithub: riscv

Download patch

ref: 66fc6a3e6443d7eb8298f65b0c9803197d196ec7
parent: 2269c807384bc6a79b23162896246f661c738400
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jun 23 21:31:43 EDT 2023

devip: remove subnet check for arpforme()

The subnet check is too restrictive.
One might very well want to proxy arp
for an ip that is not in a subnet of the
requesting interface.

--- a/sys/man/8/ipconfig
+++ b/sys/man/8/ipconfig
@@ -271,9 +271,7 @@
 .TP
 .B y
 When adding an address,
-ARP proxy the new network on other interfaces
-if the sub-net falls within a super-net
-on the other interface.
+ARP proxy the new network on other interfaces.
 .TP
 .B o
 adds
--- a/sys/src/9/ip/arp.c
+++ b/sys/src/9/ip/arp.c
@@ -406,8 +406,6 @@
 			return 0;
 		return Runi;
 	}
-	if(ipremoteonifc(ifc, targ) == nil)
-		return 0;
 	if(version == V4){
 		targ += IPv4off;
 		r = v4lookup(fs, targ, src, nil);