native_sockets; fill in LINK flag when querying interfaces in sim.
@@ -34,9 +34,12 @@ itf_flags(int if_flags)
flags = 0;
- if ((if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING)) {
+ if (if_flags & IFF_UP) {
flags |= MN_ITF_F_UP;
}
+ if (if_flags & IFF_RUNNING) {
+ flags |= MN_ITF_F_LINK;
+ }
if (if_flags & IFF_MULTICAST) {
flags |= MN_ITF_F_MULTICAST;
}
