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

extunix dependency can be replaced by tuntap #1

Closed
avsm opened this issue May 14, 2015 · 5 comments
Closed

extunix dependency can be replaced by tuntap #1

avsm opened this issue May 14, 2015 · 5 comments

Comments

@avsm
Copy link
Member

avsm commented May 14, 2015

The https://github.com/mirage/ocaml-tuntap exposes getifaddrs that is parsed into an Ipaddr.t already. That would remove Extunix with a smaller library in the form of tuntap in config_parser.ml

@haesbaert
Copy link
Member

Yep, we could do that, but I've started rewriting extunix's recvmsg to be able to have multiple ancillary control options, basically I need IP_RECVIF in bsds and PKTINFO in linux. Extunix doesn't use ctypes which makes it kinda painful.

@avsm
Copy link
Member Author

avsm commented May 14, 2015

Yeah binding to them directly in a minilibrary with ctypes makes life much easier from a mirage perspective.

@avsm avsm closed this as completed May 14, 2015
@haesbaert
Copy link
Member

I can reconsider this, it seemed more logical at first to add to an existing library.

@haesbaert
Copy link
Member

The dependency can now go away as I've written my own recvmsg wrapper, so won't rely on my future work on extunix.

@haesbaert
Copy link
Member

Replaced extunix with ocaml-tuntap, that pull-request I made is necessary though.

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

No branches or pull requests

2 participants