diff options
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index fe154cf13..0b834e7c7 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * Foundation; either version 2 of the License, or (at | 15 | * Foundation; either version 2 of the License, or (at |
16 | * your option) any later version. | 16 | * your option) any later version. |
17 | * | 17 | * |
18 | * $Id: ifconfig.c,v 1.15 2001/10/28 09:36:48 andersen Exp $ | 18 | * $Id: ifconfig.c,v 1.16 2001/11/10 11:22:43 andersen Exp $ |
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
@@ -34,14 +34,12 @@ | |||
34 | #include <string.h> // strcmp and friends | 34 | #include <string.h> // strcmp and friends |
35 | #include <ctype.h> // isdigit and friends | 35 | #include <ctype.h> // isdigit and friends |
36 | #include <stddef.h> /* offsetof */ | 36 | #include <stddef.h> /* offsetof */ |
37 | #include <sys/types.h> | ||
38 | #include <sys/socket.h> | ||
39 | #include <sys/ioctl.h> | 37 | #include <sys/ioctl.h> |
40 | #include <netinet/in.h> | ||
41 | #include <arpa/inet.h> | ||
42 | #include <net/if.h> | ||
43 | #include <net/if_arp.h> | 38 | #include <net/if_arp.h> |
39 | #include <netinet/in.h> | ||
44 | #include <linux/if_ether.h> | 40 | #include <linux/if_ether.h> |
41 | #include <net/if.h> | ||
42 | #include "inet_common.h" | ||
45 | #include "busybox.h" | 43 | #include "busybox.h" |
46 | 44 | ||
47 | #ifdef CONFIG_FEATURE_IFCONFIG_SLIP | 45 | #ifdef CONFIG_FEATURE_IFCONFIG_SLIP |
@@ -339,7 +337,7 @@ int ifconfig_main(int argc, char **argv) | |||
339 | safe_strncpy(host, *argv, (sizeof host)); | 337 | safe_strncpy(host, *argv, (sizeof host)); |
340 | sai.sin_family = AF_INET; | 338 | sai.sin_family = AF_INET; |
341 | sai.sin_port = 0; | 339 | sai.sin_port = 0; |
342 | if (!strcmp(host, "default")) { | 340 | if (!strcmp(host, bb_INET_default)) { |
343 | /* Default is special, meaning 0.0.0.0. */ | 341 | /* Default is special, meaning 0.0.0.0. */ |
344 | sai.sin_addr.s_addr = INADDR_ANY; | 342 | sai.sin_addr.s_addr = INADDR_ANY; |
345 | } else if (inet_aton(host, &sai.sin_addr) == 0) { | 343 | } else if (inet_aton(host, &sai.sin_addr) == 0) { |