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

int rtnl_addr_get_scope ( struct rtnl_addr *  addr  ) 

Get scope of address object.

  • addr Address object.
    Returns:
    Scope or a negative number if not set.

Definition at line 875 of file addr.c.

{
      if (addr->a_mask & ADDR_ATTR_SCOPE)
            return addr->a_scope;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index