Allow the -i <interface> option with -d -a to allow all arp entries for

a given interface to be removed.
This commit is contained in:
Brooks Davis 2006-01-10 05:17:16 +00:00
parent dfad96ea18
commit 0836985219
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154162
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@
.Op Cm pub
.Nm
.Fl d
.Op Fl i Ar interface
.Fl a
.Nm
.Fl s Ar hostname ether_addr

View File

@ -152,7 +152,7 @@ main(int argc, char *argv[])
if (!func)
func = F_GET;
if (rifname) {
if (func != F_GET)
if (func != F_GET && !(func == F_DELETE && aflag))
errx(1, "-i not applicable to this operation");
if (if_nametoindex(rifname) == 0) {
if (errno == ENXIO)