From e1ac697441f1147a69aad66207385fdd716a05e7 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 2 Feb 2010 03:28:05 +0100 Subject: netlink: process scope value, save it add struct connected "scope" field, fill it from kernel data and display it in "show interface" address list. --- zebra/interface.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zebra/interface.c') diff --git a/zebra/interface.c b/zebra/interface.c index 76131aef..10cb95bb 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -595,6 +595,11 @@ connected_dump_vty (struct vty *vty, struct connected *connected) vty_out (vty, "/%d", connected->destination->prefixlen); } +#ifdef HAVE_NETLINK + if (connected->scope != 0) + vty_out (vty, " scope %s", connected_scope_name (connected->scope)); +#endif + if (CHECK_FLAG (connected->flags, ZEBRA_IFA_SECONDARY)) vty_out (vty, " secondary"); -- cgit v1.2.3