commit | 4568a6f8423fbb25dee7ccb539ed215f391071b0 | [log] [tgz] |
---|---|---|
author | Vladislav Grishenko <themiron@mail.ru> | Mon Aug 19 16:07:07 2013 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Mon Aug 19 16:07:07 2013 +0100 |
tree | 1d7b63872b75fe002fa460e6a32be9dd82de948a | |
parent | 5c72bb9e33285027cd17c7ace1527954669f3ebd [diff] [blame] |
IFACE_PERMANENT interface flag in enumeration.
diff --git a/src/bpf.c b/src/bpf.c index fcb9f55..619a662 100644 --- a/src/bpf.c +++ b/src/bpf.c
@@ -159,6 +159,10 @@ if (ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_DEPRECATED) flags |= IFACE_DEPRECATED; + + if (!(ifr6.ifr_ifru.ifru_flags6 & (IN6_IFF_AUTOCONF | IN6_IFF_TEMPORARY))) + flags |= IFACE_PERMANENT; + } ifr6.ifr_addr = *((struct sockaddr_in6 *) addrs->ifa_addr);