diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/isrv.h | 8 | ||||
-rw-r--r-- | networking/libiproute/ip_common.h | 9 | ||||
-rw-r--r-- | networking/libiproute/libnetlink.h | 9 | ||||
-rw-r--r-- | networking/libiproute/ll_map.h | 8 | ||||
-rw-r--r-- | networking/libiproute/rt_names.h | 8 | ||||
-rw-r--r-- | networking/libiproute/rtm_map.h | 7 | ||||
-rw-r--r-- | networking/libiproute/utils.h | 8 | ||||
-rw-r--r-- | networking/tcpudp_perhost.h | 8 | ||||
-rw-r--r-- | networking/udhcp/common.h | 13 | ||||
-rw-r--r-- | networking/udhcp/dhcpc.h | 7 | ||||
-rw-r--r-- | networking/udhcp/dhcpd.h | 8 | ||||
-rw-r--r-- | networking/udhcp/options.h | 8 |
12 files changed, 97 insertions, 4 deletions
diff --git a/networking/isrv.h b/networking/isrv.h index 370ed9043..c0158a3e3 100644 --- a/networking/isrv.h +++ b/networking/isrv.h | |||
@@ -8,6 +8,10 @@ | |||
8 | * Licensed under GPL version 2, see file LICENSE in this tarball for details. | 8 | * Licensed under GPL version 2, see file LICENSE in this tarball for details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #if __GNUC_PREREQ(4,1) | ||
12 | # pragma GCC visibility push(hidden) | ||
13 | #endif | ||
14 | |||
11 | /* opaque structure */ | 15 | /* opaque structure */ |
12 | struct isrv_state_t; | 16 | struct isrv_state_t; |
13 | typedef struct isrv_state_t isrv_state_t; | 17 | typedef struct isrv_state_t isrv_state_t; |
@@ -31,3 +35,7 @@ void isrv_run( | |||
31 | int timeout, | 35 | int timeout, |
32 | int linger_timeout | 36 | int linger_timeout |
33 | ); | 37 | ); |
38 | |||
39 | #if __GNUC_PREREQ(4,1) | ||
40 | # pragma GCC visibility pop | ||
41 | #endif | ||
diff --git a/networking/libiproute/ip_common.h b/networking/libiproute/ip_common.h index c04735608..346d0b96c 100644 --- a/networking/libiproute/ip_common.h +++ b/networking/libiproute/ip_common.h | |||
@@ -13,6 +13,10 @@ | |||
13 | #include <linux/if_link.h> | 13 | #include <linux/if_link.h> |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #if __GNUC_PREREQ(4,1) | ||
17 | # pragma GCC visibility push(hidden) | ||
18 | #endif | ||
19 | |||
16 | extern char **ip_parse_common_args(char **argv); | 20 | extern char **ip_parse_common_args(char **argv); |
17 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); | 21 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
18 | extern int ipaddr_list_or_flush(char **argv, int flush); | 22 | extern int ipaddr_list_or_flush(char **argv, int flush); |
@@ -29,4 +33,9 @@ extern int do_iplink(char **argv); | |||
29 | extern int do_ipmonitor(char **argv); | 33 | extern int do_ipmonitor(char **argv); |
30 | extern int do_multiaddr(char **argv); | 34 | extern int do_multiaddr(char **argv); |
31 | extern int do_multiroute(char **argv); | 35 | extern int do_multiroute(char **argv); |
36 | |||
37 | #if __GNUC_PREREQ(4,1) | ||
38 | # pragma GCC visibility pop | ||
39 | #endif | ||
40 | |||
32 | #endif /* ip_common.h */ | 41 | #endif /* ip_common.h */ |
diff --git a/networking/libiproute/libnetlink.h b/networking/libiproute/libnetlink.h index e149f52bf..7507c52e7 100644 --- a/networking/libiproute/libnetlink.h +++ b/networking/libiproute/libnetlink.h | |||
@@ -8,6 +8,11 @@ | |||
8 | #include <linux/netlink.h> | 8 | #include <linux/netlink.h> |
9 | #include <linux/rtnetlink.h> | 9 | #include <linux/rtnetlink.h> |
10 | 10 | ||
11 | |||
12 | #if __GNUC_PREREQ(4,1) | ||
13 | # pragma GCC visibility push(hidden) | ||
14 | #endif | ||
15 | |||
11 | struct rtnl_handle | 16 | struct rtnl_handle |
12 | { | 17 | { |
13 | int fd; | 18 | int fd; |
@@ -43,4 +48,8 @@ extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, i | |||
43 | 48 | ||
44 | extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); | 49 | extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); |
45 | 50 | ||
51 | #if __GNUC_PREREQ(4,1) | ||
52 | # pragma GCC visibility pop | ||
53 | #endif | ||
54 | |||
46 | #endif /* __LIBNETLINK_H__ */ | 55 | #endif /* __LIBNETLINK_H__ */ |
diff --git a/networking/libiproute/ll_map.h b/networking/libiproute/ll_map.h index 55e2cf393..c4257894c 100644 --- a/networking/libiproute/ll_map.h +++ b/networking/libiproute/ll_map.h | |||
@@ -2,6 +2,10 @@ | |||
2 | #ifndef __LL_MAP_H__ | 2 | #ifndef __LL_MAP_H__ |
3 | #define __LL_MAP_H__ 1 | 3 | #define __LL_MAP_H__ 1 |
4 | 4 | ||
5 | #if __GNUC_PREREQ(4,1) | ||
6 | # pragma GCC visibility push(hidden) | ||
7 | #endif | ||
8 | |||
5 | int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); | 9 | int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
6 | int ll_init_map(struct rtnl_handle *rth); | 10 | int ll_init_map(struct rtnl_handle *rth); |
7 | int xll_name_to_index(const char *const name); | 11 | int xll_name_to_index(const char *const name); |
@@ -10,4 +14,8 @@ const char *ll_idx_n2a(int idx, char *buf); | |||
10 | /* int ll_index_to_type(int idx); */ | 14 | /* int ll_index_to_type(int idx); */ |
11 | unsigned ll_index_to_flags(int idx); | 15 | unsigned ll_index_to_flags(int idx); |
12 | 16 | ||
17 | #if __GNUC_PREREQ(4,1) | ||
18 | # pragma GCC visibility pop | ||
19 | #endif | ||
20 | |||
13 | #endif /* __LL_MAP_H__ */ | 21 | #endif /* __LL_MAP_H__ */ |
diff --git a/networking/libiproute/rt_names.h b/networking/libiproute/rt_names.h index f560f248b..60baa3f16 100644 --- a/networking/libiproute/rt_names.h +++ b/networking/libiproute/rt_names.h | |||
@@ -2,7 +2,9 @@ | |||
2 | #ifndef RT_NAMES_H_ | 2 | #ifndef RT_NAMES_H_ |
3 | #define RT_NAMES_H_ 1 | 3 | #define RT_NAMES_H_ 1 |
4 | 4 | ||
5 | #include <stdint.h> | 5 | #if __GNUC_PREREQ(4,1) |
6 | # pragma GCC visibility push(hidden) | ||
7 | #endif | ||
6 | 8 | ||
7 | extern const char* rtnl_rtprot_n2a(int id, char *buf, int len); | 9 | extern const char* rtnl_rtprot_n2a(int id, char *buf, int len); |
8 | extern const char* rtnl_rtscope_n2a(int id, char *buf, int len); | 10 | extern const char* rtnl_rtscope_n2a(int id, char *buf, int len); |
@@ -27,4 +29,8 @@ extern const char* ll_proto_n2a(unsigned short id, char *buf, int len); | |||
27 | extern int ll_proto_a2n(unsigned short *id, char *buf); | 29 | extern int ll_proto_a2n(unsigned short *id, char *buf); |
28 | #endif | 30 | #endif |
29 | 31 | ||
32 | #if __GNUC_PREREQ(4,1) | ||
33 | # pragma GCC visibility pop | ||
34 | #endif | ||
35 | |||
30 | #endif | 36 | #endif |
diff --git a/networking/libiproute/rtm_map.h b/networking/libiproute/rtm_map.h index cbbcc214d..02fa77e42 100644 --- a/networking/libiproute/rtm_map.h +++ b/networking/libiproute/rtm_map.h | |||
@@ -2,10 +2,17 @@ | |||
2 | #ifndef __RTM_MAP_H__ | 2 | #ifndef __RTM_MAP_H__ |
3 | #define __RTM_MAP_H__ 1 | 3 | #define __RTM_MAP_H__ 1 |
4 | 4 | ||
5 | #if __GNUC_PREREQ(4,1) | ||
6 | # pragma GCC visibility push(hidden) | ||
7 | #endif | ||
8 | |||
5 | const char *rtnl_rtntype_n2a(int id, char *buf, int len); | 9 | const char *rtnl_rtntype_n2a(int id, char *buf, int len); |
6 | int rtnl_rtntype_a2n(int *id, char *arg); | 10 | int rtnl_rtntype_a2n(int *id, char *arg); |
7 | 11 | ||
8 | int get_rt_realms(uint32_t *realms, char *arg); | 12 | int get_rt_realms(uint32_t *realms, char *arg); |
9 | 13 | ||
14 | #if __GNUC_PREREQ(4,1) | ||
15 | # pragma GCC visibility pop | ||
16 | #endif | ||
10 | 17 | ||
11 | #endif /* __RTM_MAP_H__ */ | 18 | #endif /* __RTM_MAP_H__ */ |
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index 50a6c2026..b67619d20 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h | |||
@@ -6,6 +6,10 @@ | |||
6 | #include "ll_map.h" | 6 | #include "ll_map.h" |
7 | #include "rtm_map.h" | 7 | #include "rtm_map.h" |
8 | 8 | ||
9 | #if __GNUC_PREREQ(4,1) | ||
10 | # pragma GCC visibility push(hidden) | ||
11 | #endif | ||
12 | |||
9 | extern family_t preferred_family; | 13 | extern family_t preferred_family; |
10 | extern smallint show_stats; /* UNUSED */ | 14 | extern smallint show_stats; /* UNUSED */ |
11 | extern smallint show_details; /* UNUSED */ | 15 | extern smallint show_details; /* UNUSED */ |
@@ -84,4 +88,8 @@ int dnet_pton(int af, const char *src, void *addr); | |||
84 | const char *ipx_ntop(int af, const void *addr, char *str, size_t len); | 88 | const char *ipx_ntop(int af, const void *addr, char *str, size_t len); |
85 | int ipx_pton(int af, const char *src, void *addr); | 89 | int ipx_pton(int af, const char *src, void *addr); |
86 | 90 | ||
91 | #if __GNUC_PREREQ(4,1) | ||
92 | # pragma GCC visibility pop | ||
93 | #endif | ||
94 | |||
87 | #endif /* __UTILS_H__ */ | 95 | #endif /* __UTILS_H__ */ |
diff --git a/networking/tcpudp_perhost.h b/networking/tcpudp_perhost.h index 9fc8cee61..2e093c1c4 100644 --- a/networking/tcpudp_perhost.h +++ b/networking/tcpudp_perhost.h | |||
@@ -7,6 +7,10 @@ | |||
7 | * Licensed under GPLv2, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #if __GNUC_PREREQ(4,1) | ||
11 | # pragma GCC visibility push(hidden) | ||
12 | #endif | ||
13 | |||
10 | struct hcc { | 14 | struct hcc { |
11 | char *ip; | 15 | char *ip; |
12 | int pid; | 16 | int pid; |
@@ -27,3 +31,7 @@ void ipsvd_perhost_remove(int pid); | |||
27 | 31 | ||
28 | //unsigned ipsvd_perhost_setpid(int pid); | 32 | //unsigned ipsvd_perhost_setpid(int pid); |
29 | //void ipsvd_perhost_free(void); | 33 | //void ipsvd_perhost_free(void); |
34 | |||
35 | #if __GNUC_PREREQ(4,1) | ||
36 | # pragma GCC visibility pop | ||
37 | #endif | ||
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index d44bca4e6..1131baee2 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -11,6 +11,12 @@ | |||
11 | #define _COMMON_H | 11 | #define _COMMON_H |
12 | 12 | ||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | #include <netinet/udp.h> | ||
15 | #include <netinet/ip.h> | ||
16 | |||
17 | #if __GNUC_PREREQ(4,1) | ||
18 | # pragma GCC visibility push(hidden) | ||
19 | #endif | ||
14 | 20 | ||
15 | #define DEFAULT_SCRIPT CONFIG_DHCPC_DEFAULT_SCRIPT | 21 | #define DEFAULT_SCRIPT CONFIG_DHCPC_DEFAULT_SCRIPT |
16 | 22 | ||
@@ -18,9 +24,6 @@ extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */ | |||
18 | 24 | ||
19 | /*** packet.h ***/ | 25 | /*** packet.h ***/ |
20 | 26 | ||
21 | #include <netinet/udp.h> | ||
22 | #include <netinet/ip.h> | ||
23 | |||
24 | #define DHCP_OPTIONS_BUFSIZE 308 | 27 | #define DHCP_OPTIONS_BUFSIZE 308 |
25 | 28 | ||
26 | struct dhcpMessage { | 29 | struct dhcpMessage { |
@@ -98,4 +101,8 @@ int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *i | |||
98 | # define DEBUG(str, args...) do {;} while (0) | 101 | # define DEBUG(str, args...) do {;} while (0) |
99 | #endif | 102 | #endif |
100 | 103 | ||
104 | #if __GNUC_PREREQ(4,1) | ||
105 | # pragma GCC visibility pop | ||
106 | #endif | ||
107 | |||
101 | #endif | 108 | #endif |
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h index c8acd4982..452afcf45 100644 --- a/networking/udhcp/dhcpc.h +++ b/networking/udhcp/dhcpc.h | |||
@@ -4,6 +4,10 @@ | |||
4 | #ifndef _DHCPC_H | 4 | #ifndef _DHCPC_H |
5 | #define _DHCPC_H | 5 | #define _DHCPC_H |
6 | 6 | ||
7 | #if __GNUC_PREREQ(4,1) | ||
8 | # pragma GCC visibility push(hidden) | ||
9 | #endif | ||
10 | |||
7 | #define INIT_SELECTING 0 | 11 | #define INIT_SELECTING 0 |
8 | #define REQUESTING 1 | 12 | #define REQUESTING 1 |
9 | #define BOUND 2 | 13 | #define BOUND 2 |
@@ -60,5 +64,8 @@ int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr); | |||
60 | int send_release(uint32_t server, uint32_t ciaddr); | 64 | int send_release(uint32_t server, uint32_t ciaddr); |
61 | int get_raw_packet(struct dhcpMessage *payload, int fd); | 65 | int get_raw_packet(struct dhcpMessage *payload, int fd); |
62 | 66 | ||
67 | #if __GNUC_PREREQ(4,1) | ||
68 | # pragma GCC visibility pop | ||
69 | #endif | ||
63 | 70 | ||
64 | #endif | 71 | #endif |
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index 4ce442bef..8a206ea49 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h | |||
@@ -4,6 +4,10 @@ | |||
4 | #ifndef _DHCPD_H | 4 | #ifndef _DHCPD_H |
5 | #define _DHCPD_H | 5 | #define _DHCPD_H |
6 | 6 | ||
7 | #if __GNUC_PREREQ(4,1) | ||
8 | # pragma GCC visibility push(hidden) | ||
9 | #endif | ||
10 | |||
7 | /************************************/ | 11 | /************************************/ |
8 | /* Defaults _you_ may want to tweak */ | 12 | /* Defaults _you_ may want to tweak */ |
9 | /************************************/ | 13 | /************************************/ |
@@ -114,4 +118,8 @@ void read_leases(const char *file); | |||
114 | struct option_set *find_option(struct option_set *opt_list, uint8_t code); | 118 | struct option_set *find_option(struct option_set *opt_list, uint8_t code); |
115 | 119 | ||
116 | 120 | ||
121 | #if __GNUC_PREREQ(4,1) | ||
122 | # pragma GCC visibility pop | ||
123 | #endif | ||
124 | |||
117 | #endif | 125 | #endif |
diff --git a/networking/udhcp/options.h b/networking/udhcp/options.h index e9eeefb57..cf3fe3b18 100644 --- a/networking/udhcp/options.h +++ b/networking/udhcp/options.h | |||
@@ -3,6 +3,10 @@ | |||
3 | #ifndef _OPTIONS_H | 3 | #ifndef _OPTIONS_H |
4 | #define _OPTIONS_H | 4 | #define _OPTIONS_H |
5 | 5 | ||
6 | #if __GNUC_PREREQ(4,1) | ||
7 | # pragma GCC visibility push(hidden) | ||
8 | #endif | ||
9 | |||
6 | #define TYPE_MASK 0x0F | 10 | #define TYPE_MASK 0x0F |
7 | 11 | ||
8 | enum { | 12 | enum { |
@@ -112,4 +116,8 @@ char *dname_dec(const uint8_t *cstr, int clen, const char *pre); | |||
112 | uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen); | 116 | uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen); |
113 | #endif | 117 | #endif |
114 | 118 | ||
119 | #if __GNUC_PREREQ(4,1) | ||
120 | # pragma GCC visibility pop | ||
121 | #endif | ||
122 | |||
115 | #endif | 123 | #endif |