]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r313477:
authorgarga <garga@FreeBSD.org>
Thu, 16 Feb 2017 09:12:36 +0000 (09:12 +0000)
committergarga <garga@FreeBSD.org>
Thu, 16 Feb 2017 09:12:36 +0000 (09:12 +0000)
commit627ada7a549923c35379113b3474ea449c4554c1
tree96efe3e11f87b68b8a201ce50d9b9786751738b9
parent1774b65ac65bd325f1ed5574e97f07c422efd662
MFC r313477:

Cleanup on usr.sbin/arp/arp.c

* 'blackhole' and 'reject' are mutually exclusive, replace printf() by errx()
  when both are selected.
* 'trail' option is no longer supported since first import of arp from 4.4BSD.
  XXX message was added 13 years ago in r128192. I believe it's time to remove
  it.
* Use warnx() to print some informative messages instead of printf()
* Replace strncmp() by strcmp() when validating parameters and exit when invalid
  parameter is found

Reviewed by: allanjude, vangyzen, cem
Approved by: allanjude
MFC after: 1 week
Sponsored by: Rubicon Communications (Netgate)
Differential Revision: https://reviews.freebsd.org/D9504
usr.sbin/arp/arp.c