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 7cfcd20..bd19136 100644 --- a/networking/libiproute/libnetlink.h +++ b/networking/libiproute/libnetlink.h @@ -2,7 +2,7 @@ #ifndef __LIBNETLINK_H__ #define __LIBNETLINK_H__ 1 -#include <asm/types.h> +//#include <asm/types.h> #include <linux/netlink.h> #include <linux/rtnetlink.h> @@ -11,8 +11,8 @@ struct rtnl_handle int fd; struct sockaddr_nl local; struct sockaddr_nl peer; - __u32 seq; - __u32 dump; + uint32_t seq; + uint32_t dump; }; 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, extern int rtnl_send(struct rtnl_handle *rth, char *buf, int); -extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data); +extern int addattr32(struct nlmsghdr *n, int maxlen, int type, uint32_t data); extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen); -extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data); +extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, uint32_t data); extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen); extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); |