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

unsigned int rtnl_link_get_weight ( struct rtnl_link *  link  ) 

Get Weight

  • link link handle
    Returns:
    Link weight or UINT_MAX if not set.

Definition at line 1264 of file link.c.

{
      if (link->l_mask & LINK_ATTR_WEIGHT)
            return link->l_weight;
      else
            return UINT_MAX;
}


Generated by  Doxygen 1.6.0   Back to index