aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/isrv.h8
-rw-r--r--networking/libiproute/ip_common.h9
-rw-r--r--networking/libiproute/libnetlink.h9
-rw-r--r--networking/libiproute/ll_map.h8
-rw-r--r--networking/libiproute/rt_names.h8
-rw-r--r--networking/libiproute/rtm_map.h7
-rw-r--r--networking/libiproute/utils.h8
-rw-r--r--networking/tcpudp_perhost.h8
-rw-r--r--networking/udhcp/common.h13
-rw-r--r--networking/udhcp/dhcpc.h7
-rw-r--r--networking/udhcp/dhcpd.h8
-rw-r--r--networking/udhcp/options.h8
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 */
12struct isrv_state_t; 16struct isrv_state_t;
13typedef struct isrv_state_t isrv_state_t; 17typedef 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
16extern char **ip_parse_common_args(char **argv); 20extern char **ip_parse_common_args(char **argv);
17extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); 21extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
18extern int ipaddr_list_or_flush(char **argv, int flush); 22extern int ipaddr_list_or_flush(char **argv, int flush);
@@ -29,4 +33,9 @@ extern int do_iplink(char **argv);
29extern int do_ipmonitor(char **argv); 33extern int do_ipmonitor(char **argv);
30extern int do_multiaddr(char **argv); 34extern int do_multiaddr(char **argv);
31extern int do_multiroute(char **argv); 35extern 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
11struct rtnl_handle 16struct 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
44extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); 49extern 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
5int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); 9int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
6int ll_init_map(struct rtnl_handle *rth); 10int ll_init_map(struct rtnl_handle *rth);
7int xll_name_to_index(const char *const name); 11int 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); */
11unsigned ll_index_to_flags(int idx); 15unsigned 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
7extern const char* rtnl_rtprot_n2a(int id, char *buf, int len); 9extern const char* rtnl_rtprot_n2a(int id, char *buf, int len);
8extern const char* rtnl_rtscope_n2a(int id, char *buf, int len); 10extern 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);
27extern int ll_proto_a2n(unsigned short *id, char *buf); 29extern 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
5const char *rtnl_rtntype_n2a(int id, char *buf, int len); 9const char *rtnl_rtntype_n2a(int id, char *buf, int len);
6int rtnl_rtntype_a2n(int *id, char *arg); 10int rtnl_rtntype_a2n(int *id, char *arg);
7 11
8int get_rt_realms(uint32_t *realms, char *arg); 12int 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
9extern family_t preferred_family; 13extern family_t preferred_family;
10extern smallint show_stats; /* UNUSED */ 14extern smallint show_stats; /* UNUSED */
11extern smallint show_details; /* UNUSED */ 15extern smallint show_details; /* UNUSED */
@@ -84,4 +88,8 @@ int dnet_pton(int af, const char *src, void *addr);
84const char *ipx_ntop(int af, const void *addr, char *str, size_t len); 88const char *ipx_ntop(int af, const void *addr, char *str, size_t len);
85int ipx_pton(int af, const char *src, void *addr); 89int 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
10struct hcc { 14struct 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
26struct dhcpMessage { 29struct 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);
60int send_release(uint32_t server, uint32_t ciaddr); 64int send_release(uint32_t server, uint32_t ciaddr);
61int get_raw_packet(struct dhcpMessage *payload, int fd); 65int 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);
114struct option_set *find_option(struct option_set *opt_list, uint8_t code); 118struct 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
8enum { 12enum {
@@ -112,4 +116,8 @@ char *dname_dec(const uint8_t *cstr, int clen, const char *pre);
112uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen); 116uint8_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