aboutsummaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-04-14 20:07:33 +0000
committerRob Landley <rob@landley.net>2006-04-14 20:07:33 +0000
commitb0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea (patch)
tree6435ec1075b8007dff221571a19842a2fba3692b /networking/ifupdown.c
parentda0dcd10509b06ba895c271f1b232cdfaaa6cfc8 (diff)
downloadbusybox-w32-b0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea.tar.gz
busybox-w32-b0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea.tar.bz2
busybox-w32-b0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea.zip
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.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 560c7a201..3d7bd7e19 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -135,8 +135,7 @@ static int count_netmask_bits(char *dotted_quad)
135} 135}
136#endif 136#endif
137 137
138#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6 || \ 138#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
139 ENABLE_FEATURE_IFUPDOWN_IPX
140static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length) 139static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length)
141{ 140{
142 if (*pos + str_length >= *len) { 141 if (*pos + str_length >= *len) {
@@ -317,39 +316,6 @@ static int execute(char *command, struct interface_defn_t *ifd, execfn *exec)
317} 316}
318#endif 317#endif
319 318
320#ifdef CONFIG_FEATURE_IFUPDOWN_IPX
321static int static_up_ipx(struct interface_defn_t *ifd, execfn *exec)
322{
323 return(execute("ipx_interface add %iface% %frame% %netnum%", ifd, exec));
324}
325
326static int static_down_ipx(struct interface_defn_t *ifd, execfn *exec)
327{
328 return(execute("ipx_interface del %iface% %frame%", ifd, exec));
329}
330
331static int dynamic_up(struct interface_defn_t *ifd, execfn *exec)
332{
333 return(execute("ipx_interface add %iface% %frame%", ifd, exec));
334}
335
336static int dynamic_down(struct interface_defn_t *ifd, execfn *exec)
337{
338 return(execute("ipx_interface del %iface% %frame%", ifd, exec));
339}
340
341static struct method_t methods_ipx[] = {
342 { "dynamic", dynamic_up, dynamic_down, },
343 { "static", static_up_ipx, static_down_ipx, },
344};
345
346static struct address_family_t addr_ipx = {
347 "ipx",
348 sizeof(methods_ipx) / sizeof(struct method_t),
349 methods_ipx
350};
351#endif /* IFUP_FEATURE_IPX */
352
353#ifdef CONFIG_FEATURE_IFUPDOWN_IPV6 319#ifdef CONFIG_FEATURE_IFUPDOWN_IPV6
354static int loopback_up6(struct interface_defn_t *ifd, execfn *exec) 320static int loopback_up6(struct interface_defn_t *ifd, execfn *exec)
355{ 321{
@@ -721,9 +687,6 @@ static struct interfaces_file_t *read_interfaces(const char *filename)
721#ifdef CONFIG_FEATURE_IFUPDOWN_IPV6 687#ifdef CONFIG_FEATURE_IFUPDOWN_IPV6
722 &addr_inet6, 688 &addr_inet6,
723#endif 689#endif
724#ifdef CONFIG_FEATURE_IFUPDOWN_IPX
725 &addr_ipx,
726#endif
727 NULL 690 NULL
728 }; 691 };
729 692