Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/networking/libiproute/libnetlink.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 1  Line 1 
1  /* vi: set sw=4 ts=4: */  /* vi: set sw=4 ts=4: */
2  #ifndef __LIBNETLINK_H__  #ifndef LIBNETLINK_H
3  #define __LIBNETLINK_H__ 1  #define LIBNETLINK_H 1
4    
5  #include <linux/types.h>  #include <linux/types.h>
6  /* We need linux/types.h because older kernels use __u32 etc  /* We need linux/types.h because older kernels use __u32 etc
# Line 8  Line 8 
8  #include <linux/netlink.h>  #include <linux/netlink.h>
9  #include <linux/rtnetlink.h>  #include <linux/rtnetlink.h>
10    
11    PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
12    
13  #if __GNUC_PREREQ(4,1)  struct rtnl_handle {
 # pragma GCC visibility push(hidden)  
 #endif  
   
 struct rtnl_handle  
 {  
14   int fd;   int fd;
15   struct sockaddr_nl local;   struct sockaddr_nl local;
16   struct sockaddr_nl peer;   struct sockaddr_nl peer;
# Line 27  extern void rtnl_close(struct rtnl_handl Line 23  extern void rtnl_close(struct rtnl_handl
23  extern int xrtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type) FAST_FUNC;  extern int xrtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type) FAST_FUNC;
24  extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) FAST_FUNC;  extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) FAST_FUNC;
25  extern int xrtnl_dump_filter(struct rtnl_handle *rth,  extern int xrtnl_dump_filter(struct rtnl_handle *rth,
26   int (*filter)(const struct sockaddr_nl*, struct nlmsghdr *n, void*),   int (*filter)(const struct sockaddr_nl*, struct nlmsghdr *n, void*) FAST_FUNC,
27   void *arg1) FAST_FUNC;   void *arg1) FAST_FUNC;
28    
29  /* bbox doesn't use parameters no. 3, 4, 6, 7, stub them out */  /* bbox doesn't use parameters no. 3, 4, 6, 7, stub them out */
30  #define rtnl_talk(rtnl, n, peer, groups, answer, junk, jarg) \  #define rtnl_talk(rtnl, n, peer, groups, answer, junk, jarg) \
31   rtnl_talk(rtnl, n, answer)   rtnl_talk(rtnl, n, answer)
32  extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,  extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
33   unsigned groups, struct nlmsghdr *answer,   unsigned groups, struct nlmsghdr *answer,
34   int (*junk)(struct sockaddr_nl *,struct nlmsghdr *n, void *),   int (*junk)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
35   void *jarg) FAST_FUNC;   void *jarg) FAST_FUNC;
36    
37  extern int rtnl_send(struct rtnl_handle *rth, char *buf, int) FAST_FUNC;  extern int rtnl_send(struct rtnl_handle *rth, char *buf, int) FAST_FUNC;
38    
# Line 48  extern int rta_addattr_l(struct rtattr * Line 44  extern int rta_addattr_l(struct rtattr *
44    
45  extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) FAST_FUNC;  extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) FAST_FUNC;
46    
47  #if __GNUC_PREREQ(4,1)  POP_SAVED_FUNCTION_VISIBILITY
 # pragma GCC visibility pop  
 #endif  
48    
49  #endif /* __LIBNETLINK_H__ */  #endif

Legend:
Removed from v.983  
changed lines
  Added in v.984