Page MenuHomeFreeBSD

usr.sbin/ndp: small fixes
ClosedPublic

Authored by garga on Jun 9 2017, 6:00 PM.
Tags
None
Referenced Files
F149479598: D11118.id.diff
Tue, Mar 24, 5:50 PM
F149473002: D11118.id46614.diff
Tue, Mar 24, 4:52 PM
F149465495: D11118.id.diff
Tue, Mar 24, 3:46 PM
F149427897: D11118.id47158.diff
Tue, Mar 24, 9:57 AM
F149427698: D11118.id47158.diff
Tue, Mar 24, 9:55 AM
F149362003: D11118.id47158.diff
Mon, Mar 23, 11:57 PM
F149354651: D11118.id46614.diff
Mon, Mar 23, 10:57 PM
Unknown Object (File)
Mon, Mar 23, 9:10 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 Not Applicable
Unit
Tests Not Applicable

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
670 ↗(On Diff #29388)

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

671 ↗(On Diff #29388)

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.