Page MenuHomeFreeBSD

Make temp option for ndp work
Needs ReviewPublic

Authored by lytboris_gmail.com on Sun, Mar 23, 8:20 AM.
Referenced Files
Unknown Object (File)
Sun, Mar 30, 12:25 AM
Unknown Object (File)
Sat, Mar 29, 4:23 PM
Unknown Object (File)
Sat, Mar 29, 11:09 AM
Unknown Object (File)
Fri, Mar 28, 10:02 PM
Unknown Object (File)
Fri, Mar 28, 10:02 PM
Unknown Object (File)
Fri, Mar 28, 10:02 PM
Unknown Object (File)
Fri, Mar 28, 10:02 PM
Unknown Object (File)
Fri, Mar 28, 10:02 PM
Subscribers

Details

Reviewers
melifaro
glebius
Summary

Both ways to create an artificial NDP record are broken: a call via rtsock sets wrong timeout, a netlink code does not check opts.expire_time value at all.

Patch addresses both issues.

Test Plan
  1. add 2001:DB8::/64 to an interface
  2. run ndp -s 2001:DB8::c001 11:22:33:44:55:66 temp
  3. check ndp -an | fgrep 2001:DB8::c001 to have < 20 minutes timeout
  4. rebuild ndp with -DWITHOUT_NETLINK=1 and repeat steps 1-3

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped