summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-31 22:42:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-31 22:42:12 +0000
commit9a7d38fe2448617df98ecaea7dbe6f3131088586 (patch)
tree5966d651dcb5588e24106791f9cd3647f358112b /networking
parentfad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd (diff)
downloadbusybox-w32-9a7d38fe2448617df98ecaea7dbe6f3131088586.tar.gz
busybox-w32-9a7d38fe2448617df98ecaea7dbe6f3131088586.tar.bz2
busybox-w32-9a7d38fe2448617df98ecaea7dbe6f3131088586.zip
delete tons of extra #includes
Diffstat (limited to 'networking')
-rw-r--r--networking/arping.c4
-rw-r--r--networking/libiproute/ip_parse_common_args.c6
-rw-r--r--networking/libiproute/ipaddress.c11
-rw-r--r--networking/libiproute/iplink.c10
-rw-r--r--networking/libiproute/iproute.c4
-rw-r--r--networking/libiproute/iprule.c7
-rw-r--r--networking/libiproute/iptunnel.c10
-rw-r--r--networking/libiproute/ll_addr.c4
-rw-r--r--networking/libiproute/ll_map.c10
-rw-r--r--networking/libiproute/ll_proto.c1
-rw-r--r--networking/libiproute/ll_types.c2
-rw-r--r--networking/libiproute/rtm_map.c3
-rw-r--r--networking/libiproute/utils.c1
-rw-r--r--networking/libiproute/utils.h2
14 files changed, 24 insertions, 51 deletions
diff --git a/networking/arping.c b/networking/arping.c
index 0371df369..d65be815a 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -8,8 +8,8 @@
8 * Busybox port: Nick Fedchik <nick@fedchik.org.ua> 8 * Busybox port: Nick Fedchik <nick@fedchik.org.ua>
9 */ 9 */
10 10
11#include <sys/ioctl.h> 11//#include <sys/ioctl.h>
12#include <signal.h> 12//#include <signal.h>
13 13
14#include <arpa/inet.h> 14#include <arpa/inet.h>
15#include <net/if.h> 15#include <net/if.h>
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c
index 6efbc6912..cea5b4753 100644
--- a/networking/libiproute/ip_parse_common_args.c
+++ b/networking/libiproute/ip_parse_common_args.c
@@ -15,12 +15,8 @@
15 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses 15 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
16 */ 16 */
17 17
18#include <string.h> 18#include "ip_common.h" /* #include "libbb.h" is inside */
19
20#include "libbb.h"
21#include "utils.h" 19#include "utils.h"
22#include "ip_common.h"
23
24 20
25int preferred_family = AF_UNSPEC; 21int preferred_family = AF_UNSPEC;
26smallint oneline; 22smallint oneline;
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 4f83924ae..e504862a9 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -10,20 +10,15 @@
10 * Laszlo Valko <valko@linux.karinthy.hu> 990223: address label must be zero terminated 10 * Laszlo Valko <valko@linux.karinthy.hu> 990223: address label must be zero terminated
11 */ 11 */
12 12
13#include "libbb.h" 13//#include <sys/socket.h>
14#include <sys/socket.h> 14//#include <sys/ioctl.h>
15#include <sys/ioctl.h>
16
17#include <fnmatch.h> 15#include <fnmatch.h>
18#include <string.h>
19#include <unistd.h>
20
21#include <net/if.h> 16#include <net/if.h>
22#include <net/if_arp.h> 17#include <net/if_arp.h>
23 18
19#include "ip_common.h" /* #include "libbb.h" is inside */
24#include "rt_names.h" 20#include "rt_names.h"
25#include "utils.h" 21#include "utils.h"
26#include "ip_common.h"
27 22
28 23
29typedef struct filter_t { 24typedef struct filter_t {
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 5feab1e49..7db4d7e15 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -7,20 +7,16 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "libbb.h" 10//#include <sys/ioctl.h>
11 11//#include <sys/socket.h>
12#include <sys/ioctl.h>
13#include <sys/socket.h>
14
15#include <net/if.h> 12#include <net/if.h>
16#include <net/if_packet.h> 13#include <net/if_packet.h>
17#include <netpacket/packet.h> 14#include <netpacket/packet.h>
18
19#include <net/ethernet.h> 15#include <net/ethernet.h>
20 16
17#include "ip_common.h" /* #include "libbb.h" is inside */
21#include "rt_names.h" 18#include "rt_names.h"
22#include "utils.h" 19#include "utils.h"
23#include "ip_common.h"
24 20
25/* taken from linux/sockios.h */ 21/* taken from linux/sockios.h */
26#define SIOCSIFNAME 0x8923 /* set interface name */ 22#define SIOCSIFNAME 0x8923 /* set interface name */
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 4efe9fd74..75e52939c 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -13,11 +13,9 @@
13 * Kunihiro Ishiguro <kunihiro@zebra.org> 001102: rtnh_ifindex was not initialized 13 * Kunihiro Ishiguro <kunihiro@zebra.org> 001102: rtnh_ifindex was not initialized
14 */ 14 */
15 15
16#include "libbb.h" 16#include "ip_common.h" /* #include "libbb.h" is inside */
17
18#include "rt_names.h" 17#include "rt_names.h"
19#include "utils.h" 18#include "utils.h"
20#include "ip_common.h"
21 19
22#ifndef RTAX_RTTVAR 20#ifndef RTAX_RTTVAR
23#define RTAX_RTTVAR RTAX_HOPS 21#define RTAX_RTTVAR RTAX_HOPS
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c
index 0499a0994..e2e96f023 100644
--- a/networking/libiproute/iprule.c
+++ b/networking/libiproute/iprule.c
@@ -16,16 +16,16 @@
16 * initially integrated into busybox by Bernhard Fischer 16 * initially integrated into busybox by Bernhard Fischer
17 */ 17 */
18 18
19#include "libbb.h"
20#include <syslog.h> 19#include <syslog.h>
21#include <sys/socket.h> 20//#include <sys/socket.h>
22#include <netinet/in.h> 21#include <netinet/in.h>
23#include <netinet/ip.h> 22#include <netinet/ip.h>
24#include <arpa/inet.h> 23#include <arpa/inet.h>
25 24
25#include "ip_common.h" /* #include "libbb.h" is inside */
26#include "rt_names.h" 26#include "rt_names.h"
27#include "utils.h" 27#include "utils.h"
28#include "ip_common.h" 28
29/* 29/*
30static void usage(void) __attribute__((noreturn)); 30static void usage(void) __attribute__((noreturn));
31 31
@@ -41,6 +41,7 @@ static void usage(void)
41 exit(-1); 41 exit(-1);
42} 42}
43*/ 43*/
44
44static int print_rule(struct sockaddr_nl *who ATTRIBUTE_UNUSED, 45static int print_rule(struct sockaddr_nl *who ATTRIBUTE_UNUSED,
45 struct nlmsghdr *n, void *arg) 46 struct nlmsghdr *n, void *arg)
46{ 47{
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index a2eb0ccda..3327b27a3 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -14,24 +14,20 @@
14 * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag 14 * Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
15 */ 15 */
16 16
17#include "libbb.h" 17//#include <sys/socket.h>
18#include <sys/socket.h> 18//#include <sys/ioctl.h>
19#include <sys/ioctl.h>
20
21#include <netinet/ip.h> 19#include <netinet/ip.h>
22
23#include <net/if.h> 20#include <net/if.h>
24#include <net/if_arp.h> 21#include <net/if_arp.h>
25
26#include <asm/types.h> 22#include <asm/types.h>
27#ifndef __constant_htons 23#ifndef __constant_htons
28#define __constant_htons htons 24#define __constant_htons htons
29#endif 25#endif
30#include <linux/if_tunnel.h> 26#include <linux/if_tunnel.h>
31 27
28#include "ip_common.h" /* #include "libbb.h" is inside */
32#include "rt_names.h" 29#include "rt_names.h"
33#include "utils.h" 30#include "utils.h"
34#include "ip_common.h"
35 31
36 32
37/* Dies on error */ 33/* Dies on error */
diff --git a/networking/libiproute/ll_addr.c b/networking/libiproute/ll_addr.c
index b4a218780..ab5a2c522 100644
--- a/networking/libiproute/ll_addr.c
+++ b/networking/libiproute/ll_addr.c
@@ -10,11 +10,9 @@
10 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 10 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
11 */ 11 */
12 12
13#include "libbb.h"
14
15#include <string.h>
16#include <net/if_arp.h> 13#include <net/if_arp.h>
17 14
15#include "libbb.h"
18#include "rt_names.h" 16#include "rt_names.h"
19#include "utils.h" 17#include "utils.h"
20 18
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c
index e9a1616cc..eb9b0a4ff 100644
--- a/networking/libiproute/ll_map.c
+++ b/networking/libiproute/ll_map.c
@@ -11,16 +11,14 @@
11 * 11 *
12 */ 12 */
13 13
14#include "libbb.h" 14//#include <sys/socket.h> /* socket() */
15#include <string.h> 15#include <net/if.h> /* struct ifreq and co. */
16//#include <sys/ioctl.h> /* ioctl() & SIOCGIFINDEX */
16 17
18#include "libbb.h"
17#include "libnetlink.h" 19#include "libnetlink.h"
18#include "ll_map.h" 20#include "ll_map.h"
19 21
20#include <sys/socket.h> /* socket() */
21#include <net/if.h> /* struct ifreq and co. */
22#include <sys/ioctl.h> /* ioctl() & SIOCGIFINDEX */
23
24struct idxmap { 22struct idxmap {
25 struct idxmap * next; 23 struct idxmap * next;
26 int index; 24 int index;
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c
index aad460b5f..10d749881 100644
--- a/networking/libiproute/ll_proto.c
+++ b/networking/libiproute/ll_proto.c
@@ -11,7 +11,6 @@
11 */ 11 */
12 12
13#include "libbb.h" 13#include "libbb.h"
14
15#include "rt_names.h" 14#include "rt_names.h"
16#include "utils.h" 15#include "utils.h"
17 16
diff --git a/networking/libiproute/ll_types.c b/networking/libiproute/ll_types.c
index 416ea6bbe..5d2843b14 100644
--- a/networking/libiproute/ll_types.c
+++ b/networking/libiproute/ll_types.c
@@ -9,10 +9,10 @@
9 * 9 *
10 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 10 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
11 */ 11 */
12#include <stdio.h>
13#include <arpa/inet.h> 12#include <arpa/inet.h>
14#include <linux/if_arp.h> 13#include <linux/if_arp.h>
15 14
15#include "libbb.h"
16#include "rt_names.h" 16#include "rt_names.h"
17 17
18const char* ll_type_n2a(int type, char *buf, int len) 18const char* ll_type_n2a(int type, char *buf, int len)
diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c
index c16406b8b..7fad0ecc8 100644
--- a/networking/libiproute/rtm_map.c
+++ b/networking/libiproute/rtm_map.c
@@ -11,8 +11,7 @@
11 * 11 *
12 */ 12 */
13 13
14#include <stdlib.h> 14#include "libbb.h"
15#include <string.h>
16#include "rt_names.h" 15#include "rt_names.h"
17#include "utils.h" 16#include "utils.h"
18 17
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index 9605c39db..7fc1dbc26 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -12,7 +12,6 @@
12 */ 12 */
13 13
14#include "libbb.h" 14#include "libbb.h"
15
16#include "utils.h" 15#include "utils.h"
17#include "inet_common.h" 16#include "inet_common.h"
18 17
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h
index 3b6fef1e3..3bbc71d14 100644
--- a/networking/libiproute/utils.h
+++ b/networking/libiproute/utils.h
@@ -2,8 +2,6 @@
2#ifndef __UTILS_H__ 2#ifndef __UTILS_H__
3#define __UTILS_H__ 1 3#define __UTILS_H__ 1
4 4
5#include "libbb.h"
6
7#include "libnetlink.h" 5#include "libnetlink.h"
8#include "ll_map.h" 6#include "ll_map.h"
9#include "rtm_map.h" 7#include "rtm_map.h"