We don't need to disable hardware link status while ifch is working; if
the link status goes down, we will fail horribly anyway because ARP will fail, so we must keep track of the link status to be safe.
This commit is contained in:
parent
03bd10ed88
commit
3e78ffd576
@ -89,8 +89,6 @@ static void nl_process_msgs(const struct nlmsghdr *nlh, void *data)
|
||||
get_if_index_and_mac(nlh, ifm);
|
||||
if (ifm->ifi_index != client_config.ifindex)
|
||||
break;
|
||||
if (cs->ifchWorking)
|
||||
break;
|
||||
// IFF_UP corresponds to ifconfig down or ifconfig up.
|
||||
if (ifm->ifi_flags & IFF_UP) {
|
||||
// IFF_RUNNING is the hardware carrier.
|
||||
@ -113,8 +111,6 @@ static void nl_process_msgs(const struct nlmsghdr *nlh, void *data)
|
||||
case RTM_DELLINK:
|
||||
if (ifm->ifi_index != client_config.ifindex)
|
||||
break;
|
||||
if (cs->ifchWorking)
|
||||
break;
|
||||
if (cs->ifsPrevState != IFS_REMOVED) {
|
||||
cs->ifsPrevState = IFS_REMOVED;
|
||||
log_line("Interface removed. Exiting.");
|
||||
|
Loading…
Reference in New Issue
Block a user