pub fn bring_up(&self) -> Result<(), NlError> {
        let mut nl = open_nl_route_socket()?;

        let info = Ifinfomsg::up(
            RtAddrFamily::Unspecified,
            Arphrd::Netrom,
            self.if_index as c_int,
            neli::types::RtBuffer::new(),
        );
        let msg = Nlmsghdr::new(
            None,
            Rtm::Newlink,
            neli::consts::nl::NlmFFlags::new(&[NlmF::Request, NlmF::Ack]),
            None,
            Some(0),
            neli::nl::NlPayload::Payload(info),
        );
        send_and_read_ack(&mut nl, msg)
    }
/// Bring up CAN interface
///
/// Brings the interface up by settings its "up" flag enabled via netlink.
Bring up CAN interface
Brings the interface up by settings its "up" flag enabled via netlink.
Bring up CAN interface Brings the interface up by settings its " up " flag enabled via netlink .
pub fn bring_up(&self) -> Result<(), NlError> {
        let mut nl = open_nl_route_socket()?;
        let info = Ifinfomsg::up(
            RtAddrFamily::Unspecified,
            Arphrd::Netrom,
            self.if_index as c_int,
            neli::types::RtBuffer::new(),
        );
        let msg = Nlmsghdr::new(
            None,
            Rtm::Newlink,
            neli::consts::nl::NlmFFlags::new(&[NlmF::Request, NlmF::Ack]),
            None,
            Some(0),
            neli::nl::NlPayload::Payload(info),
        );
        send_and_read_ack(&mut nl, msg)
    }
pub fn bring_up ( & self ) -> Result < ( ) , NlError > { let mut nl = open_nl_route_socket ( ) ? ; let info = Ifinfomsg :: up ( RtAddrFamily :: Unspecified , Arphrd :: Netrom , self . if_index as c_int , neli :: types :: RtBuffer :: new ( ) , ) ; let msg = Nlmsghdr :: new ( None , Rtm :: Newlink , neli :: consts :: nl :: NlmFFlags :: new ( & [ NlmF :: Request , NlmF :: Ack ] ) , None , Some ( 0 ) , neli :: nl :: NlPayload :: Payload ( info ) , ) ; send_and_read_ack ( & mut nl , msg ) }
Bring up CAN interface
Brings the interface up by settings its "up" flag enabled via netlink.
Bring up CAN interface Brings the interface up by settings its " up " flag enabled via netlink .
&self
&self