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

int rtnl_route_get_protocol ( struct rtnl_route *  route  ) 

Get the protocol of a route

  • route route handle
    Returns:
    Protocol number or -1 if not set

Definition at line 747 of file route.c.

{
      if (route->rt_mask & ROUTE_ATTR_PROTOCOL)
            return route->rt_protocol;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index