aboutsummaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
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