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

int rtnl_route_unset_metric ( struct rtnl_route *  route,
int  metric 
)

Unset a metric of a route

  • route route to be changed
  • metric metric to be unset (see XXX)
    Returns:
    0 on sucess or a negative error code

Definition at line 937 of file route.c.

{
      if (metric <= RTAX_MAX || metric < 1)
            return nl_error(EINVAL, "Metric out of range (1..%d)",
                RTAX_MAX);

      route->rt_metrics_mask &= ~(1 << (metric - 1));

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index