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

int rtnl_route_get_src_len ( struct rtnl_route *  route  ) 

Get the source address prefix length of a route

  • route route handle
    Returns:
    Prefix length or -1 if not set

Definition at line 847 of file route.c.

{
      if (route->rt_mask & ROUTE_ATTR_SRC_LEN)
            return route->rt_src_len;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index