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

void rtnl_route_set_src_len ( struct rtnl_route *  route,
int  prefix 

Set the source address prefix length of a route to the specified value

  • route route to be changed
  • prefix new source address prefix
    The source address prefix gets overwritten by calls to rtnl_route_src_dst() rtnl_route_set_src_str().

Definition at line 836 of file route.c.

      route->rt_dst_len = prefix;
      route->rt_mask |= ROUTE_ATTR_SRC_LEN;

Generated by  Doxygen 1.6.0   Back to index