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

socket: Support NETLINK_GET_STRICT_CHK #21

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

cathay4t
Copy link
Member

@cathay4t cathay4t commented Apr 3, 2024

Introduce Socket::set_netlink_get_strict_chk() wrapping:

libc::setsockopt(
    fd,
    libc::SOL_NETLINK,
    libc::NETLINK_GET_STRICT_CHK,
    1u32.to_ne_bytes().as_ptr() as *const _,
    4,
)

Introduce `Socket::set_netlink_get_strict_chk()` wrapping:

```rust
libc::setsockopt(
    fd,
    libc::SOL_NETLINK,
    libc::NETLINK_GET_STRICT_CHK,
    1u32.to_ne_bytes().as_ptr() as *const _,
    4,
)
```

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit be6a7aa into rust-netlink:main Apr 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant