From 28c7957ec7969f3a203e1c0990102663845c454c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 4 Jul 2006 19:30:04 +0000 Subject: [PATCH] convert net_route to use net_address_t --- src/os/darwin/darwin_sigar.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 475e4465..f85b4ea5 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -1428,15 +1428,18 @@ int sigar_net_route_list_get(sigar_t *sigar, } switch (bit) { case RTA_DST: - route->destination = rt_s_addr(sa); + sigar_net_address_set(route->destination, + rt_s_addr(sa)); break; case RTA_GATEWAY: if (sa->sa_family == AF_INET) { - route->gateway = rt_s_addr(sa); + sigar_net_address_set(route->gateway, + rt_s_addr(sa)); } break; case RTA_NETMASK: - route->mask = rt_s_addr(sa); + sigar_net_address_set(route->mask, + rt_s_addr(sa)); break; case RTA_IFA: break;