diff options
-rw-r--r-- | networking/ifupdown.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 766dfabbd..179186199 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -875,7 +875,19 @@ static struct interfaces_file_t *read_interfaces(const char *filename, struct in | |||
875 | currif->method = get_method(currif->address_family, method_name); | 875 | currif->method = get_method(currif->address_family, method_name); |
876 | if (!currif->method) | 876 | if (!currif->method) |
877 | bb_error_msg_and_die("unknown method \"%s\"", method_name); | 877 | bb_error_msg_and_die("unknown method \"%s\"", method_name); |
878 | 878 | #if 0 | |
879 | // Allegedly, Debian allows a duplicate definition: | ||
880 | // iface eth0 inet static | ||
881 | // address 192.168.0.15 | ||
882 | // netmask 255.255.0.0 | ||
883 | // gateway 192.168.0.1 | ||
884 | // | ||
885 | // iface eth0 inet static | ||
886 | // address 10.0.0.1 | ||
887 | // netmask 255.255.255.0 | ||
888 | // | ||
889 | // This adds *two* addresses to eth0 (probably requires use of "ip", not "ifconfig" | ||
890 | // | ||
879 | for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) { | 891 | for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) { |
880 | struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data; | 892 | struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data; |
881 | if ((strcmp(tmp->iface, currif->iface) == 0) | 893 | if ((strcmp(tmp->iface, currif->iface) == 0) |
@@ -884,6 +896,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename, struct in | |||
884 | bb_error_msg_and_die("duplicate interface \"%s\"", tmp->iface); | 896 | bb_error_msg_and_die("duplicate interface \"%s\"", tmp->iface); |
885 | } | 897 | } |
886 | } | 898 | } |
899 | #endif | ||
887 | llist_add_to_end(&(defn->ifaces), (char*)currif); | 900 | llist_add_to_end(&(defn->ifaces), (char*)currif); |
888 | 901 | ||
889 | debug_noise("iface %s %s %s\n", currif->iface, address_family_name, method_name); | 902 | debug_noise("iface %s %s %s\n", currif->iface, address_family_name, method_name); |