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:
parent
dfad96ea18
commit
0836985219
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154162
@ -48,6 +48,7 @@
|
||||
.Op Cm pub
|
||||
.Nm
|
||||
.Fl d
|
||||
.Op Fl i Ar interface
|
||||
.Fl a
|
||||
.Nm
|
||||
.Fl s Ar hostname ether_addr
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user