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

not working on macOS #71

Closed
LuoZijun opened this issue Nov 7, 2017 · 5 comments · Fixed by #268
Closed

not working on macOS #71

LuoZijun opened this issue Nov 7, 2017 · 5 comments · Fixed by #268

Comments

@LuoZijun
Copy link
Contributor

LuoZijun commented Nov 7, 2017

Line: https://github.com/m-labs/smoltcp/blob/master/src/phy/sys/raw_socket.rs#L21

hi, the libc::AF_PACKET constant only work on linux kernel.

@whitequark
Copy link
Contributor

I know. Feel free to contribute a macOS port of the hosted components. I do not currently have plans for that.

Of course, you can always disable the raw and TAP sockets using default-features = false in your Cargo.toml.

@LuoZijun
Copy link
Contributor Author

LuoZijun commented Nov 8, 2017

ok, thx for your reply.

@whitequark whitequark changed the title [REPORT] not working on macOS not working on macOS Nov 21, 2017
@LuoZijun
Copy link
Contributor Author

@whitequark hi, i almost finish rust-bpf (macOS), do u interesting if i make one PR ?

https://github.com/LuoZijun/exodus/blob/master/netif/src/bpf.rs

@whitequark
Copy link
Contributor

Sure, if you clean up that code it seems like a perfect fit for our phy module.

@LuoZijun
Copy link
Contributor Author

LuoZijun commented Jan 31, 2018

See PR-136 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants