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

struct nl_addr* rtnl_route_get_gateway ( struct rtnl_route *  route  )  [read]

Get the gateway address of a route

  • route route handle
    Returns:
    Gateway address or NULL if not set

Definition at line 1101 of file route.c.

{
      if (route->rt_mask & ROUTE_ATTR_GATEWAY)
            return route->rt_gateway;
      else
            return NULL;
}


Generated by  Doxygen 1.6.0   Back to index