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

bs-ebpf: Make it work on rust's Stable channel #17

Open
oskardrums opened this issue Feb 13, 2020 · 0 comments
Open

bs-ebpf: Make it work on rust's Stable channel #17

oskardrums opened this issue Feb 13, 2020 · 0 comments
Labels
Milestone

Comments

@oskardrums
Copy link
Owner

oskardrums commented Feb 13, 2020

The only reason bs-ebpf is currently nighlty-only is because we use the syscall crate to call create a raw call to bpf(2), and the syscall crate uses #[feature(asm)], and that's marked as unstable for the foreseeable future...

We only use syscall in this line:

let fd = unsafe { syscall!(BPF, 5, ptr, size_of_val(&attr)) as i32 };

So we probably need some build.rs script to generate a .a static library that exposes just a bpf(2) wrapper 🤷‍♂️

@oskardrums oskardrums added this to the Stable API milestone Feb 13, 2020
oskardrums added a commit that referenced this issue Feb 13, 2020
* Make bs-ebpf non-default member of the workspace
see issue
[#17](#17 (comment))

* bs-socket: crate documentation and examples

* bs-socket: split Socket methods into traits

* Make SetFilter more cross compatible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant