-
Notifications
You must be signed in to change notification settings - Fork 680
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
Ability to add custom socket options #577
Comments
I don't quite understand the issue here as I'm not familiar with |
Sorry for bringing up an old issue, but it happened so I need the same feature :) Basically the issue is that the macro For example, for So I guess exposing |
Is there a reason we can't provide a If we were to expose |
That's great, thanks! 👍 I'll try to make it happen by the beginning of next week. |
(I went for the second option) |
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes nix-rust#577
* Make sockopt_impl! public This allows users to define their own sockopts, instead of needing to make a PR to Nix for every single one. Fixes #577 * Respond to @SteveLauC's comments * No need to make GetCString pub
I was looking to do the following code except using nix instead of libc:
However nix currently doesn't support this, which is fine. However, nix doesn't expose an easy way to use it's internal macros to construct the SO_ATTACH_FILTER command. I wanted to file an issue to suggest exposing this. I'll also look into contributing my use case to nix so it's added t the library for future users.
Code source: https://github.com/jedisct1/rust-bpf/blob/0122d0a95e6012abab0475b14cef20dbfa481704/src/bpf_linux.rs#L58
The text was updated successfully, but these errors were encountered: