From 6fa108f7e81179faadccb87422684a41e8943efb Mon Sep 17 00:00:00 2001 From: vedganes Date: Thu, 24 Dec 2020 17:22:25 -0500 Subject: [PATCH] [linksync] Netdev oper status determination using IFF_RUNNING Signed-off-by: vedganes Changes in linksync to use IFF_RUNNING to determine link operational status instead of using IFF_LOWER_UP. --- portsyncd/linksync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portsyncd/linksync.cpp b/portsyncd/linksync.cpp index 1985559e56..820da0ce60 100644 --- a/portsyncd/linksync.cpp +++ b/portsyncd/linksync.cpp @@ -174,7 +174,7 @@ void LinkSync::onMsg(int nlmsg_type, struct nl_object *obj) unsigned int flags = rtnl_link_get_flags(link); bool admin = flags & IFF_UP; - bool oper = flags & IFF_LOWER_UP; + bool oper = flags & IFF_RUNNING; char addrStr[MAX_ADDR_SIZE+1] = {0}; nl_addr2str(rtnl_link_get_addr(link), addrStr, MAX_ADDR_SIZE);