fn open_netlink_socket(&self, groups: &[u32]) -> Result<NlSocketHandle, TunError> {
        // create netlink socket
        let handle = NlSocketHandle::connect(
            NlFamily::Route,
            None,
            groups,
            //&[RTNLGRP_LINK, RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR],
        )?;

        Ok(handle)
    }
/// Opens a netlink socket and binds the request multicast groups
///
/// # Arguments
/// * `groups` - List of multicast groups to bind/listen
///
/// # Errors
/// * I/O if the netlink socket fails to open
Opens a netlink socket and binds the request multicast groups
Opens a netlink socket and binds the request multicast groups
fn open_netlink_socket(&self, groups: &[u32]) -> Result<NlSocketHandle, TunError> {
        // create netlink socket
        let handle = NlSocketHandle::connect(
            NlFamily::Route,
            None,
            groups,
            //&[RTNLGRP_LINK, RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR],
        )?;
        Ok(handle)
    }
fn open_netlink_socket ( & self , groups : & [ u32 ] ) -> Result < NlSocketHandle , TunError > { // create netlink socket let handle = NlSocketHandle :: connect ( NlFamily :: Route , None , groups , //&[RTNLGRP_LINK, RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR], ) ? ; Ok ( handle ) }
Opens a netlink socket and binds the request multicast groups
Opens a netlink socket and binds the request multicast groups
&self
groups
&[u32]
&self
groups
&[u32]
errors
I/O if the netlink socket fails to open
I / O if the netlink socket fails to open