diff options
author | paul <paul> | 2002-12-13 21:03:13 +0000 |
---|---|---|
committer | paul <paul> | 2002-12-13 21:03:13 +0000 |
commit | 2e3b2e474ed5ba04744b167132a84f9954485af4 (patch) | |
tree | cc07fb34a1bf21ead5cc3ad69e4a9dfde2b43b0e /zebra/rt_netlink.c | |
parent | 7afa08da2d3690baee1739da400775f8543f5863 (diff) |
zebra link state detection support
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r-- | zebra/rt_netlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index baca1751..fa4dc54f 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -787,16 +787,16 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h) ifp->mtu = *(int *)RTA_DATA (tb[IFLA_MTU]); ifp->metric = 1; - if (if_is_up (ifp)) + if (if_is_operative (ifp)) { ifp->flags = ifi->ifi_flags & 0x0000fffff; - if (! if_is_up (ifp)) + if (! if_is_operative (ifp)) if_down (ifp); } else { ifp->flags = ifi->ifi_flags & 0x0000fffff; - if (if_is_up (ifp)) + if (if_is_operative (ifp)) if_up (ifp); } } |