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

int rtnl_route_get_oif ( struct rtnl_route *  route  ) 

Get the outgoing interface index of a route

  • route route handle
    Returns:
    interface index or RTNL_LINK_NOT_FOUND if not set

Definition at line 1172 of file route.c.

References RTNL_LINK_NOT_FOUND.

{
      if (route->rt_mask & ROUTE_ATTR_OIF)
            return route->rt_oif;
      else
            return RTNL_LINK_NOT_FOUND;
}


Generated by  Doxygen 1.6.0   Back to index