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

int rtnl_link_get_master ( struct rtnl_link *  link  ) 

Get master interface index

  • link link handle
    Returns:
    Interface index of master or RTNL_LINK_NOT_FOUND if not set

Definition at line 1312 of file link.c.

References RTNL_LINK_NOT_FOUND.

{
      if (link->l_mask & LINK_ATTR_MASTER)
            return link->l_master;
      else
            return RTNL_LINK_NOT_FOUND;
}


Generated by  Doxygen 1.6.0   Back to index