Use hybrid management mode by default
authorSteven Barth <steven@midlink.org>
Fri, 17 Jan 2014 15:47:31 +0000 (16:47 +0100)
committerSteven Barth <steven@midlink.org>
Fri, 17 Jan 2014 15:47:31 +0000 (16:47 +0100)
src/config.c

index d025bdf23e99f3cf46924dfdc5f9db04c3a57e5d..195a9a420c20156c34070054a0b060faed72ec20 100644 (file)
@@ -454,6 +454,8 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
 
        if ((c = tb[IFACE_ATTR_RA_MANAGEMENT]))
                iface->managed = blobmsg_get_u32(c);
+       else
+               iface->managed = 1;
 
        if ((c = tb[IFACE_ATTR_RA_OFFLINK]))
                iface->ra_not_onlink = blobmsg_get_bool(c);