diff options
-rw-r--r-- | include/libbb.h | 11 | ||||
-rw-r--r-- | networking/ifconfig.c | 5 | ||||
-rw-r--r-- | networking/interface.c | 1 |
3 files changed, 9 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h index 68e4851db..858adca4c 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -400,6 +400,15 @@ extern int bb_cat(char** argv); | |||
400 | extern int bb_echo(char** argv); | 400 | extern int bb_echo(char** argv); |
401 | extern int bb_test(int argc, char** argv); | 401 | extern int bb_test(int argc, char** argv); |
402 | 402 | ||
403 | |||
404 | /* Networking */ | ||
405 | int create_icmp_socket(void); | ||
406 | int create_icmp6_socket(void); | ||
407 | /* interface.c */ | ||
408 | extern int interface_opt_a; | ||
409 | int display_interfaces(char *ifname); | ||
410 | |||
411 | |||
403 | #ifndef BUILD_INDIVIDUAL | 412 | #ifndef BUILD_INDIVIDUAL |
404 | extern struct BB_applet *find_applet_by_name(const char *name); | 413 | extern struct BB_applet *find_applet_by_name(const char *name); |
405 | extern void run_applet_by_name(const char *name, int argc, char **argv); | 414 | extern void run_applet_by_name(const char *name, int argc, char **argv); |
@@ -438,8 +447,6 @@ int exists_execable(const char *filename); | |||
438 | USE_DESKTOP(long long) int uncompress(int fd_in, int fd_out); | 447 | USE_DESKTOP(long long) int uncompress(int fd_in, int fd_out); |
439 | int inflate(int in, int out); | 448 | int inflate(int in, int out); |
440 | 449 | ||
441 | int create_icmp_socket(void); | ||
442 | int create_icmp6_socket(void); | ||
443 | 450 | ||
444 | unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); | 451 | unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); |
445 | void bb_lookup_host(struct sockaddr_in *s_in, const char *host); | 452 | void bb_lookup_host(struct sockaddr_in *s_in, const char *host); |
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index dd4ce5ecd..9cdd41c3a 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -257,11 +257,6 @@ static const struct options OptArray[] = { | |||
257 | static int in_ether(const char *bufp, struct sockaddr *sap); | 257 | static int in_ether(const char *bufp, struct sockaddr *sap); |
258 | #endif | 258 | #endif |
259 | 259 | ||
260 | #if ENABLE_FEATURE_IFCONFIG_STATUS | ||
261 | extern int interface_opt_a; | ||
262 | extern int display_interfaces(char *ifname); | ||
263 | #endif | ||
264 | |||
265 | /* | 260 | /* |
266 | * Our main function. | 261 | * Our main function. |
267 | */ | 262 | */ |
diff --git a/networking/interface.c b/networking/interface.c index 1d194f38e..b39298cfe 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -1133,7 +1133,6 @@ static int if_print(char *ifname) | |||
1133 | return res; | 1133 | return res; |
1134 | } | 1134 | } |
1135 | 1135 | ||
1136 | int display_interfaces(char *ifname); | ||
1137 | int display_interfaces(char *ifname) | 1136 | int display_interfaces(char *ifname) |
1138 | { | 1137 | { |
1139 | int status; | 1138 | int status; |