1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00
freebsd/usr.sbin/ndp
R. Christian McDonald 934a24e55a 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
2023-10-23 22:58:29 +02:00
..
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ndp_netlink.c ndp: improve -c and -d handling in ndp_netlink 2023-10-23 22:58:29 +02:00
ndp.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
ndp.c ndp: improve -c and -d handling in ndp_netlink 2023-10-23 22:58:29 +02:00
ndp.h ndp: improve -c and -d handling in ndp_netlink 2023-10-23 22:58:29 +02:00