/// Allocate a new netlink routing socket.
Allocate a new netlink routing socket.
Allocate a new netlink routing socket .
pub fn new() -> Result<Self> {
        let sock = NlSocket::new().context("Failed to create netlink routing socket.")?;
        let connected_sock = sock
            .connect(NlProtocols::Route)
            .context("Failed to create netlink routing socket.")?;
        Ok(Self(connected_sock))
    }
pub fn new ( ) -> Result < Self > { let sock = NlSocket :: new ( ) . context ( " " ) ? ; let connected_sock = sock . connect ( NlProtocols :: Route ) . context ( " " ) ? ; Ok ( Self ( connected_sock ) ) }
Allocate a new netlink routing socket.
Allocate a new netlink routing socket .