diff options
author | Rob Landley | 2006-04-14 20:07:33 +0000 |
---|---|---|
committer | Rob Landley | 2006-04-14 20:07:33 +0000 |
commit | b0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea (patch) | |
tree | 6435ec1075b8007dff221571a19842a2fba3692b /networking/ifupdown.c | |
parent | da0dcd10509b06ba895c271f1b232cdfaaa6cfc8 (diff) | |
download | busybox-b0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea.zip busybox-b0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea.tar.gz |
Remove code for protocols we don't properly support. (Most of this could
never be selected via menuconfig anyway.) If somebody wants one of these
protocols, ask on the list for us to support it _properly_.
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r-- | networking/ifupdown.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 560c7a2..3d7bd7e 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -135,8 +135,7 @@ static int count_netmask_bits(char *dotted_quad) } #endif -#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6 || \ - ENABLE_FEATURE_IFUPDOWN_IPX +#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6 static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length) { if (*pos + str_length >= *len) { @@ -317,39 +316,6 @@ static int execute(char *command, struct interface_defn_t *ifd, execfn *exec) } #endif -#ifdef CONFIG_FEATURE_IFUPDOWN_IPX -static int static_up_ipx(struct interface_defn_t *ifd, execfn *exec) -{ - return(execute("ipx_interface add %iface% %frame% %netnum%", ifd, exec)); -} - -static int static_down_ipx(struct interface_defn_t *ifd, execfn *exec) -{ - return(execute("ipx_interface del %iface% %frame%", ifd, exec)); -} - -static int dynamic_up(struct interface_defn_t *ifd, execfn *exec) -{ - return(execute("ipx_interface add %iface% %frame%", ifd, exec)); -} - -static int dynamic_down(struct interface_defn_t *ifd, execfn *exec) -{ - return(execute("ipx_interface del %iface% %frame%", ifd, exec)); -} - -static struct method_t methods_ipx[] = { - { "dynamic", dynamic_up, dynamic_down, }, - { "static", static_up_ipx, static_down_ipx, }, -}; - -static struct address_family_t addr_ipx = { - "ipx", - sizeof(methods_ipx) / sizeof(struct method_t), - methods_ipx -}; -#endif /* IFUP_FEATURE_IPX */ - #ifdef CONFIG_FEATURE_IFUPDOWN_IPV6 static int loopback_up6(struct interface_defn_t *ifd, execfn *exec) { @@ -721,9 +687,6 @@ static struct interfaces_file_t *read_interfaces(const char *filename) #ifdef CONFIG_FEATURE_IFUPDOWN_IPV6 &addr_inet6, #endif -#ifdef CONFIG_FEATURE_IFUPDOWN_IPX - &addr_ipx, -#endif NULL }; |