smoltcp icon indicating copy to clipboard operation
smoltcp copied to clipboard

Access to neighbor cache from interface API

Open strtok opened this issue 1 year ago • 1 comments

In previous versions it was possible to pre-fill the neighbor cache. It looks like it's part of the inner Interface context() now, but no longer exposed to the public API? Am I missing an API call?

strtok avatar Oct 11 '23 14:10 strtok

The access to the neighbour cache was removed in #722, where we changed from using managed to heapless. It was possible to prefill a neighbour cache because of the usage of managed. I guess we could add something like an update_neighbor_cache function, like how we do it for IP addresses. To be honest, I don't see why you would pre-fill a neighbour cache as this might come back as a footgun.

thvdveld avatar Nov 28 '23 14:11 thvdveld