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.
Differential D49459
Make temp option for ndp work Authored by lytboris_gmail.com on Mar 23 2025, 8:20 AM.
Details 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.
Diff Detail
Event TimelineComment Actions Are the tests that hard to add, or perhaps can it be proceeded with further without them? Comment Actions I will try to add them this or the next week, it takes a while to get familiar with test suite.
Comment Actions I had already done some quick testing of the previous version earlier, but today I rebased this patch onto the latest version and applied it to the 16.0-CURRENT sources to do some testing. I’m not fully familiar with the NDP mechanics, but when an entry expires, shouldn’t it be removed and the NDP resolution performed again? That doesn’t seem to be happening here. The NDP entry is marked as expired, but the host continues to use it and sends packets as if it were a static entry. I’m not sure whether this is caused by the patch or if the bug is elsewhere. | |||||||||||||||||||