1 --- libnfnetlink-1.0.1.orig/include/libnfnetlink/libnfnetlink.h 2010-05-09 23:31:56.000000000 +0200
2 +++ libnfnetlink-1.0.1/include/libnfnetlink/libnfnetlink.h 2014-04-10 07:47:04.000000000 +0200
4 #define aligned_u64 unsigned long long __attribute__((aligned(8)))
8 #include <sys/socket.h> /* for sa_family_t */
9 #include <linux/netlink.h>
10 #include <libnfnetlink/linux_nfnetlink.h>
11 @@ -55,7 +56,7 @@ struct nfnlhdr {
12 struct nfnl_callback {
13 int (*call)(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);
15 - u_int16_t attr_count;
16 + uint16_t attr_count;
20 @@ -69,7 +70,7 @@ extern struct nfnl_handle *nfnl_open(voi
21 extern int nfnl_close(struct nfnl_handle *);
23 extern struct nfnl_subsys_handle *nfnl_subsys_open(struct nfnl_handle *,
27 extern void nfnl_subsys_close(struct nfnl_subsys_handle *);
29 @@ -88,8 +89,8 @@ extern int nfnl_sendiov(const struct nfn
30 const struct iovec *iov, unsigned int num,
32 extern void nfnl_fill_hdr(struct nfnl_subsys_handle *, struct nlmsghdr *,
33 - unsigned int, u_int8_t, u_int16_t, u_int16_t,
35 + unsigned int, uint8_t, uint16_t, uint16_t,
37 extern __attribute__((deprecated)) int
38 nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
39 unsigned, struct nlmsghdr *,
40 @@ -103,8 +104,8 @@ nfnl_listen(struct nfnl_handle *,
42 extern ssize_t nfnl_recv(const struct nfnl_handle *h, unsigned char *buf, size_t len);
43 extern int nfnl_callback_register(struct nfnl_subsys_handle *,
44 - u_int8_t type, struct nfnl_callback *cb);
45 -extern int nfnl_callback_unregister(struct nfnl_subsys_handle *, u_int8_t type);
46 + uint8_t type, struct nfnl_callback *cb);
47 +extern int nfnl_callback_unregister(struct nfnl_subsys_handle *, uint8_t type);
48 extern int nfnl_handle_packet(struct nfnl_handle *, char *buf, int len);
51 @@ -180,12 +181,12 @@ extern int nfnl_query(struct nfnl_handle
53 /* nfnl attribute handling functions */
54 extern int nfnl_addattr_l(struct nlmsghdr *, int, int, const void *, int);
55 -extern int nfnl_addattr8(struct nlmsghdr *, int, int, u_int8_t);
56 -extern int nfnl_addattr16(struct nlmsghdr *, int, int, u_int16_t);
57 -extern int nfnl_addattr32(struct nlmsghdr *, int, int, u_int32_t);
58 +extern int nfnl_addattr8(struct nlmsghdr *, int, int, uint8_t);
59 +extern int nfnl_addattr16(struct nlmsghdr *, int, int, uint16_t);
60 +extern int nfnl_addattr32(struct nlmsghdr *, int, int, uint32_t);
61 extern int nfnl_nfa_addattr_l(struct nfattr *, int, int, const void *, int);
62 -extern int nfnl_nfa_addattr16(struct nfattr *, int, int, u_int16_t);
63 -extern int nfnl_nfa_addattr32(struct nfattr *, int, int, u_int32_t);
64 +extern int nfnl_nfa_addattr16(struct nfattr *, int, int, uint16_t);
65 +extern int nfnl_nfa_addattr32(struct nfattr *, int, int, uint32_t);
66 extern int nfnl_parse_attr(struct nfattr **, int, struct nfattr *, int);
67 #define nfnl_parse_nested(tb, max, nfa) \
68 nfnl_parse_attr((tb), (max), NFA_DATA((nfa)), NFA_PAYLOAD((nfa)))
69 @@ -197,7 +198,7 @@ extern int nfnl_parse_attr(struct nfattr
70 ({ (tail)->nfa_len = (void *) NLMSG_TAIL(nlh) - (void *) tail; })
72 extern void nfnl_build_nfa_iovec(struct iovec *iov, struct nfattr *nfa,
73 - u_int16_t type, u_int32_t len,
74 + uint16_t type, uint32_t len,
76 extern unsigned int nfnl_rcvbufsiz(const struct nfnl_handle *h,