Closed NJRoadfan closed 1 week ago
OK. New patch just filters out packets from the loopback adapter. One can't suppress the duplicate packets. It is by design if multiple interfaces are on the same zone. Some sort of split horizon logic would need to be done, but its not worth the effort over the minimum additional traffic. This patch fixes the biggest problem, which is packets from the loopback interface leaking onto the network.
Note, this wasn't tested on NetBSD or pre-6.9 Linux kernels. There should be no regressions though. At the worst, its still sending the extra reply from the loopback, but with the address of the server's interface as before.
@NJRoadfan Is this ready for review now?
In Linux 6.9+, NBP Reply packets can appear to come from the loopback interface, which has an address of
0.0
. This address is invalid on Phase 2 AppleTalk networks and should never appear. One minor benefit is less traffic is generated when doing NBP Lookups. Fixes #1731 without breaking anything additional.