HomeFreeBSD

usr.sbin/ndp: Cleanup in preparation to add libxo support

Description

usr.sbin/ndp: Cleanup in preparation to add libxo support

  • Constify rtpref_str declaration
  • Remove unused h_errno declaration
  • Use time_t type for expire
  • Use strlcpy to set static "?" value to ifname
  • Rename local variable 's' to stop shadowing global definition
  • Close socket used in pfx_flush()
  • Use local variables for sock() in setdefif() and getdefif()
  • Increase WARNS to 3

Reviewed by: allanjude, kevans
Approved by: allanjude
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D11118

Details

Committed
gargaAug 23 2018, 10:38 AM
Reviewer
allanjude
Differential Revision
D11118: usr.sbin/ndp: small fixes
Parents
rS338242: Add manpage entry for the new bhyve options -s "help" and -l "help".
Branches
Unknown
Tags
Unknown