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

struct nl_addr* rtnl_link_get_addr ( struct rtnl_link *  link  )  [read]

Get link layer address

  • link link handle
    Returns:
    link layer address or NULL if not set

Definition at line 1081 of file link.c.

{
      if (link->l_mask & LINK_ATTR_ADDR)
            return link->l_addr;
      else
            return NULL;
}


Generated by  Doxygen 1.6.0   Back to index