HomeFreeBSD

arp(8): fix by-interface and by-host filtering when using netlink

Description

arp(8): fix by-interface and by-host filtering when using netlink

arp(8) has traditionally supported filtering by interface via -i and
by hostname. However, this functionality was omitted from the initial
netlink-ification of arp. This patch re-introduces this filtering
functionality.

This patch also improves by-interface filtering by storing and using the
ifindex of the requested interface for filtering instead of comparing
interface name strings

Reviewed by: melifaro
Sponsored by: Rubicon Communications, LLC ("Netgate")
Approved by: re (gjb)

(cherry picked from commit 79278872ad966e5f54805efbeb692c8cbc0306c8)
(cherry picked from commit f21f0d2e16af702c53bc150c6c23d1bc99399bcd)

Details

Provenance
rcmAuthored on Sep 14 2023, 7:07 AM
desCommitted on Oct 1 2023, 7:04 AM
Parents
rG408daf2caa92: regcomp: use unsigned char when testing for escapes
Branches
Unknown
Tags
Unknown