mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
netlink.so: Add support for IFF_RUNNING => net/IFNAME/running
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -130,6 +130,18 @@ static void nl_link(struct nlmsghdr *nlmsg)
|
||||
else
|
||||
cond_clear(msg);
|
||||
|
||||
if (string_compare("lo", ifname)) {
|
||||
snprintf(msg, sizeof(msg), "net/%s/exist", ifname);
|
||||
cond_set(msg);
|
||||
}
|
||||
} else if (i->ifi_change & IFF_RUNNING) {
|
||||
snprintf(msg, sizeof(msg), "net/%s/running", ifname);
|
||||
|
||||
if (i->ifi_flags & IFF_RUNNING)
|
||||
cond_set(msg);
|
||||
else
|
||||
cond_clear(msg);
|
||||
|
||||
if (string_compare("lo", ifname)) {
|
||||
snprintf(msg, sizeof(msg), "net/%s/exist", ifname);
|
||||
cond_set(msg);
|
||||
|
||||
Reference in New Issue
Block a user