HomeFreeBSD

ndp: improve -c and -d handling in ndp_netlink

Description

ndp: improve -c and -d handling in ndp_netlink

This patch restores/fixes some of the behavior present in pre-netlink ndp(8).

  1. Deleting a local address now correctly returns EPERM (instead of ENOENT)
  2. ndp -c no longer dumps the entire table while complaining about local addresses
  3. Return exit code when deleting entry (e.g. trying ndp -d on a local address is an error)

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D42316

Details

Provenance
rcmAuthored on Oct 23 2023, 7:43 PM
kpCommitted on Oct 23 2023, 8:58 PM
Reviewer
kp
Differential Revision
D42316: ndp: improve -c and -d handling in ndp_netlink
Parents
rGdd7d42a1fae5: nfscl/kgssapi: Fix Kerberized NFS mounts to pNFS servers
Branches
Unknown
Tags
Unknown