rust-netlink / netlink-sys

netlink sockets, with optional integration with tokio
Other
15 stars 10 forks source link

socket: Support `NETLINK_GET_STRICT_CHK` #21

Closed cathay4t closed 5 months ago

cathay4t commented 5 months ago

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,
)