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

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

Get the source address of a route

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

Definition at line 1054 of file route.c.

{
      if (route->rt_mask & ROUTE_ATTR_SRC)
            return route->rt_src;
      else
            return NULL;
}


Generated by  Doxygen 1.6.0   Back to index