diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-03 00:12:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-03 00:12:58 +0000 |
commit | 100acb6c6d751288f07fb39b7d481514a9e275fb (patch) | |
tree | 15da32e6d207b7c23fbc80c21c1a045ddc230008 /usr.sbin/arp/arp.c | |
parent | fe9cab4ae0ab1c93d39792ef327f98d7276cc1ff (diff) |
make "arp -na" and "arp -an" do the same thing; paul@wit387304.student.utwente.nl
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r-- | usr.sbin/arp/arp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 9af01e5b57f..600570d2287 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -98,6 +98,12 @@ main(argc, argv) pid = getpid(); while ((ch = getopt(argc, argv, "andsf")) != -1) + if (ch == 'n') + nflag = 1; + + optind = 1; + optreset = 1; + while ((ch = getopt(argc, argv, "andsf")) != -1) switch((char)ch) { case 'a': dump(0); @@ -108,7 +114,6 @@ main(argc, argv) (void)delete(argv[2], argv[3]); return (0); case 'n': - nflag = 1; break; case 's': if (argc < 4 || argc > 7) |