Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int rtnl_addr_get_ifindex ( struct rtnl_addr *  addr  ) 

Get interface index of address object

  • addr Address object.
    Returns:
    Interface index address is on or RTNL_LINK_NOT_FOUND if not set.

Definition at line 799 of file addr.c.

References RTNL_LINK_NOT_FOUND.

{
      if (addr->a_mask & ADDR_ATTR_IFINDEX)
            return addr->a_ifindex;
      else
            return RTNL_LINK_NOT_FOUND;
}


Generated by  Doxygen 1.6.0   Back to index