Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arp: fill cache only from ARP responses #537

Closed
Dirbaio opened this issue Oct 1, 2021 · 2 comments
Closed

arp: fill cache only from ARP responses #537

Dirbaio opened this issue Oct 1, 2021 · 2 comments
Labels

Comments

@Dirbaio
Copy link
Member

Dirbaio commented Oct 1, 2021

This fill here fills the cache on any ARP message. It should only do it on ARP responses I think.

self.neighbor_cache.as_mut().unwrap().fill(

@dnadlinger
Copy link
Contributor

Isn't opportunistically use everything it sees to fill the cache a sensible thing to do?

@Dirbaio
Copy link
Member Author

Dirbaio commented Oct 6, 2021

@dnadlinger In theory it's correct, but I'm quite scared that some broken network out there breaks it, similarly to what happened in 6210612. Addresses in ARP packets should be more reliable yes, but still, who knows...

Also it can fill the the ARP cache with random entries we don't need, which can evict the ones that we do need. So this change can be good for performance too.

@bors bors bot closed this as completed in 83c0165 Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants