Page MenuHomeFreeBSD

usr.sbin/ndp: small fixes
ClosedPublic

Authored by garga on Jun 9 2017, 6:00 PM.
Tags
None
Referenced Files
F136974180: D11118.id46614.diff
Thu, Nov 20, 9:28 PM
F136971260: D11118.id.diff
Thu, Nov 20, 9:15 PM
F136970863: D11118.id46613.diff
Thu, Nov 20, 9:13 PM
F136970533: D11118.id47158.diff
Thu, Nov 20, 9:12 PM
F136970490: D11118.id29388.diff
Thu, Nov 20, 9:11 PM
F136969253: D11118.diff
Thu, Nov 20, 9:06 PM
Unknown Object (File)
Sun, Nov 9, 4:36 PM
Unknown Object (File)
Tue, Nov 4, 7:41 PM
Subscribers

Details

Summary

usr.sbin/ndp:

  • 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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18759
Build 18434: arc lint + arc unit

Event Timeline

garga retitled this revision from usr.sbin/ntp: small fixes to usr.sbin/ndp: small fixes.Jun 9 2017, 6:19 PM
usr.sbin/ndp/ndp.c
671–672

You might as well change this to ifname == NULL while you're touching the area, since ifname is actually a pointer.

672–675

ifname is actually NULL here, so the strlcpy dest and size should be of ifix_buf (and set ifname = ifix_buf)

This revision is now accepted and ready to land.Aug 21 2018, 4:59 PM
This revision was automatically updated to reflect the committed changes.