diff options
Diffstat (limited to 'networking/libiproute/libnetlink.h')
-rw-r--r-- | networking/libiproute/libnetlink.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/libiproute/libnetlink.h b/networking/libiproute/libnetlink.h index 7cfcd2042..bd1913618 100644 --- a/networking/libiproute/libnetlink.h +++ b/networking/libiproute/libnetlink.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #ifndef __LIBNETLINK_H__ | 2 | #ifndef __LIBNETLINK_H__ |
3 | #define __LIBNETLINK_H__ 1 | 3 | #define __LIBNETLINK_H__ 1 |
4 | 4 | ||
5 | #include <asm/types.h> | 5 | //#include <asm/types.h> |
6 | #include <linux/netlink.h> | 6 | #include <linux/netlink.h> |
7 | #include <linux/rtnetlink.h> | 7 | #include <linux/rtnetlink.h> |
8 | 8 | ||
@@ -11,8 +11,8 @@ struct rtnl_handle | |||
11 | int fd; | 11 | int fd; |
12 | struct sockaddr_nl local; | 12 | struct sockaddr_nl local; |
13 | struct sockaddr_nl peer; | 13 | struct sockaddr_nl peer; |
14 | __u32 seq; | 14 | uint32_t seq; |
15 | __u32 dump; | 15 | uint32_t dump; |
16 | }; | 16 | }; |
17 | 17 | ||
18 | extern int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions); | 18 | extern int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions); |
@@ -31,9 +31,9 @@ extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer, | |||
31 | extern int rtnl_send(struct rtnl_handle *rth, char *buf, int); | 31 | extern int rtnl_send(struct rtnl_handle *rth, char *buf, int); |
32 | 32 | ||
33 | 33 | ||
34 | extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data); | 34 | extern int addattr32(struct nlmsghdr *n, int maxlen, int type, uint32_t data); |
35 | extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen); | 35 | extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen); |
36 | extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data); | 36 | extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, uint32_t data); |
37 | extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen); | 37 | extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen); |
38 | 38 | ||
39 | extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); | 39 | extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); |