From 17cf20dabb137205497d81f7c55efa45a4e50748 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 20 Jun 2008 09:40:35 -0700 Subject: Use if_flags_update --- zebra/rt_netlink.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index c6ec08c6..c487b1da 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -985,21 +985,7 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h) zlog_info ("interface %s index %d changed %s.", name, ifi->ifi_index, if_flag_dump(new_flags)); - if (if_is_operative (ifp)) - { - ifp->flags = new_flags; - if (!if_is_operative (ifp)) - if_down (ifp); - else - /* Must notify client daemons of new interface status. */ - zebra_interface_up_update (ifp); - } - else - { - ifp->flags = new_flags; - if (if_is_operative (ifp)) - if_up (ifp); - } + if_flags_update(ifp, new_flags); } } } -- cgit v1.2.3