freebsd-src icon indicating copy to clipboard operation
freebsd-src copied to clipboard

arp(8): allow -i with -s

Open llfw opened this issue 9 months ago • 4 comments

arp(8) usually disallows adding a static ARP entry for an IP address which is not configured on a local interface.

Change this to allow such ARP entries to be added if '-i' is provided to specify the interface the ARP entry relates to.

Due to limitations in the kernel lltable, this still requires that a host route exists for the target address, but allows static ARP entries to be configured to proxy ARP for, e.g., local jails which use an IPv4 address with a /32 route.


cc @glebius

this PR came about from my attempts to make proxy ARP work in FreeBSD -- i still couldn't get it to work for my purposes even with this PR, but i think this is useful even so.

llfw avatar May 05 '24 18:05 llfw

@AlexanderChernikov can you please take a look, too?

glebius avatar May 06 '24 16:05 glebius

hi @bsdimp what changes are required here?

llfw avatar May 15 '24 01:05 llfw

hi @bsdimp what changes are required here?

I think that tag should be need-review :)

gmshake avatar May 15 '24 01:05 gmshake

yea, waiting for @glebius or @AlexanderChernikov (or maybe @gmshake) to review it.

bsdimp avatar May 16 '24 10:05 bsdimp