[Bug 290221] [netlink] default build of /usr/sbin/arp is broken for proxyarp

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Oct 2025 05:46:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290221

            Bug ID: 290221
           Summary: [netlink] default build of /usr/sbin/arp is broken for
                    proxyarp
           Product: Base System
           Version: 14.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: regression
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: eugen@freebsd.org
                CC: ae@FreeBSD.org, glebius@FreeBSD.org
             Flags: mfc-stable15?, mfc-stable14?

Arp proxying with /usr/sbin/arp is broken since it switched to NETLINK.
Here is "how to repeat":

# ifconfig tun0 create inet 10.0.0.1 10.11.0.1 netmask 255.255.255.255
# ifconfig tun0
tun0: flags=1008051<UP,POINTOPOINT,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu
1500
        options=4080000<LINKSTATE,MEXTPG>
        inet 10.0.0.1 --> 10.11.0.1 netmask 0xffffffff
        groups: tun
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
# route add -host 10.0.0.233 -iface tun0
add host 10.0.0.233: gateway tun0
# /usr/sbin/arp -s 10.0.0.233 60:be:b4:4:94:65 pub
arp: set: 10.0.0.233: Invalid argument (NDA_LLADDR address length (6) is
different from expected (0))

Here 60:be:b4:4:94:65 is MAC address of LAN igc0 interface having IP address
10.0.0.1/24

A workaround is to rebuild /usr/sbin/arp WITHOUT_NETLINK_SUPPORT so it uses
rtsock instead. Then it works again.

-- 
You are receiving this mail because:
You are the assignee for the bug.