Page MenuHomeFreeBSD

Make temp option for ndp work
Needs ReviewPublic

Authored by lytboris_gmail.com on Mar 23 2025, 8:20 AM.
Referenced Files
Unknown Object (File)
Tue, May 6, 8:35 PM
Unknown Object (File)
Mon, Apr 28, 8:24 PM
Unknown Object (File)
Thu, Apr 17, 2:47 AM
Unknown Object (File)
Wed, Apr 9, 8:07 PM
Unknown Object (File)
Apr 7 2025, 5:49 AM
Unknown Object (File)
Apr 7 2025, 5:49 AM
Unknown Object (File)
Apr 7 2025, 5:49 AM
Unknown Object (File)
Apr 7 2025, 5:49 AM
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