diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-02 03:28:05 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-03 05:27:12 +0100 |
commit | e1ac697441f1147a69aad66207385fdd716a05e7 (patch) | |
tree | 83d0a5591066e37b7373f663964f79c6a8597e89 /zebra/if_ioctl.c | |
parent | a3e5daee7205e8bffb44d914a74d38fe8ad0c986 (diff) | |
download | quagga-e1ac697441f1147a69aad66207385fdd716a05e7.tar.bz2 quagga-e1ac697441f1147a69aad66207385fdd716a05e7.tar.xz |
netlink: process scope value, save it
add struct connected "scope" field, fill it from kernel data and display
it in "show interface" address list.
Diffstat (limited to 'zebra/if_ioctl.c')
-rw-r--r-- | zebra/if_ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c index f357e154..e85c744c 100644 --- a/zebra/if_ioctl.c +++ b/zebra/if_ioctl.c @@ -276,7 +276,7 @@ if_getaddrs (void) } connected_add_ipv4 (ifp, flags, &addr->sin_addr, - prefixlen, dest_pnt, NULL); + prefixlen, dest_pnt, NULL, 0); } #ifdef HAVE_IPV6 if (ifap->ifa_addr->sa_family == AF_INET6) @@ -321,7 +321,7 @@ if_getaddrs (void) #endif connected_add_ipv6 (ifp, flags, &addr->sin6_addr, prefixlen, - dest_pnt, NULL); + dest_pnt, NULL, 0); } #endif /* HAVE_IPV6 */ } @@ -412,7 +412,7 @@ if_get_addr (struct interface *ifp) /* Set address to the interface. */ - connected_add_ipv4 (ifp, flags, &addr.sin_addr, prefixlen, dest_pnt, NULL); + connected_add_ipv4 (ifp, flags, &addr.sin_addr, prefixlen, dest_pnt, NULL, 0); return 0; } |