Page MenuHomeFreeBSD

Fix 'in6_purgeaddr: err=65, destination address delete failed' message.
ClosedPublic

Authored by melifaro on Mar 7 2021, 8:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 3:25 PM
Unknown Object (File)
Mon, Mar 18, 5:42 PM
Unknown Object (File)
Feb 23 2024, 1:12 PM
Unknown Object (File)
Feb 12 2024, 3:03 PM
Unknown Object (File)
Feb 3 2024, 8:16 AM
Unknown Object (File)
Jan 18 2024, 1:16 PM
Unknown Object (File)
Jan 17 2024, 11:49 PM
Unknown Object (File)
Dec 23 2023, 8:29 PM
Subscribers

Details

Summary

P2P ifa may require 2 routes: one is the loopback route, another is
the "prefix" route towards its destination.

Current code marks loopback routes existence with IFA_RTSELF and
"prefix" p2p routes with IFA_ROUTE.

For historic reasons, we fill in ifa_dstaddr for loopback interfaces.
To avoid installing the same route twice, we preemptively set
IFA_RTSELF when adding "prefix" route for loopback.
However, the teardown part doesn't have this hack, so we try to
remove the same route twice.

Fix this by checking if ifa_dstaddr is different from the ifa_addr
and moving this logic into a separate function.

Diff Detail

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