johnyburd / net-route

Rust crate providing a cross platform interface for interacting with the routing table
https://docs.rs/net-route/
21 stars 14 forks source link

Fix macOS support for IPv6, and in general. #4

Closed adamierymenko closed 9 months ago

adamierymenko commented 1 year ago

This fixes macOS support for IPv6.

johnyburd commented 1 year ago

Hi sorry it took so long to take a look at this. I will admit I did not test ipv6 on macos very thoroughly. In my initial testing of this PR it seems like some the messages are being decoded incorrectly, at least for ipv4. I'll take a closer look later this weekend but I'm going to hold off merging until I figure out what's going on.

adamierymenko commented 1 year ago

Not impossible, but I am totally sure that IPv6 was broken on macOS. You should at least be able to get ideas from this.