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

int rtnl_link_get_family ( struct rtnl_link *  link  ) 

Get link layer address family

  • link link handle
    Returns:
    Link layer address family or AF_UNSPEC if not set.

Definition at line 1166 of file link.c.

{
      if (link->l_family & LINK_ATTR_FAMILY)
            return link->l_family;
      else
            return AF_UNSPEC;
}


Generated by  Doxygen 1.6.0   Back to index