patch-include_libnetfilter_conntrack_libnetfilter_conntrack_h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. --- libnetfilter_conntrack-1.0.4.orig/include/libnetfilter_conntrack/libnetfilter_conntrack.h 2013-08-06 15:22:55.000000000 +0200
  2. +++ libnetfilter_conntrack-1.0.4/include/libnetfilter_conntrack/libnetfilter_conntrack.h 2014-04-10 14:29:23.000000000 +0200
  3. @@ -10,6 +10,7 @@
  4. #ifndef _LIBNETFILTER_CONNTRACK_H_
  5. #define _LIBNETFILTER_CONNTRACK_H_
  6. +#include <stdint.h>
  7. #include <netinet/in.h>
  8. #include <libnfnetlink/linux_nfnetlink.h>
  9. #include <libnfnetlink/libnfnetlink.h>
  10. @@ -37,9 +38,9 @@ struct nfct_handle;
  11. /*
  12. * [Open|close] a conntrack handler
  13. */
  14. -extern struct nfct_handle *nfct_open(u_int8_t, unsigned);
  15. +extern struct nfct_handle *nfct_open(uint8_t, unsigned);
  16. extern struct nfct_handle *nfct_open_nfnl(struct nfnl_handle *nfnlh,
  17. - u_int8_t subsys_id,
  18. + uint8_t subsys_id,
  19. unsigned int subscriptions);
  20. extern int nfct_close(struct nfct_handle *cth);
  21. @@ -160,31 +161,31 @@ enum nf_conntrack_attr_grp {
  22. };
  23. struct nfct_attr_grp_ipv4 {
  24. - u_int32_t src, dst;
  25. + uint32_t src, dst;
  26. };
  27. struct nfct_attr_grp_ipv6 {
  28. - u_int32_t src[4], dst[4];
  29. + uint32_t src[4], dst[4];
  30. };
  31. struct nfct_attr_grp_port {
  32. - u_int16_t sport, dport;
  33. + uint16_t sport, dport;
  34. };
  35. struct nfct_attr_grp_icmp {
  36. - u_int16_t id;
  37. - u_int8_t code, type;
  38. + uint16_t id;
  39. + uint8_t code, type;
  40. };
  41. struct nfct_attr_grp_ctrs {
  42. - u_int64_t packets;
  43. - u_int64_t bytes;
  44. + uint64_t packets;
  45. + uint64_t bytes;
  46. };
  47. union nfct_attr_grp_addr {
  48. - u_int32_t ip;
  49. - u_int32_t ip6[4];
  50. - u_int32_t addr[4];
  51. + uint32_t ip;
  52. + uint32_t ip6[4];
  53. + uint32_t addr[4];
  54. };
  55. /* message type */
  56. @@ -302,19 +303,19 @@ extern void nfct_set_attr(struct nf_conn
  57. extern void nfct_set_attr_u8(struct nf_conntrack *ct,
  58. const enum nf_conntrack_attr type,
  59. - u_int8_t value);
  60. + uint8_t value);
  61. extern void nfct_set_attr_u16(struct nf_conntrack *ct,
  62. const enum nf_conntrack_attr type,
  63. - u_int16_t value);
  64. + uint16_t value);
  65. extern void nfct_set_attr_u32(struct nf_conntrack *ct,
  66. const enum nf_conntrack_attr type,
  67. - u_int32_t value);
  68. + uint32_t value);
  69. extern void nfct_set_attr_u64(struct nf_conntrack *ct,
  70. const enum nf_conntrack_attr type,
  71. - u_int64_t value);
  72. + uint64_t value);
  73. extern void nfct_set_attr_l(struct nf_conntrack *ct,
  74. const enum nf_conntrack_attr type,
  75. @@ -325,16 +326,16 @@ extern void nfct_set_attr_l(struct nf_co
  76. extern const void *nfct_get_attr(const struct nf_conntrack *ct,
  77. const enum nf_conntrack_attr type);
  78. -extern u_int8_t nfct_get_attr_u8(const struct nf_conntrack *ct,
  79. +extern uint8_t nfct_get_attr_u8(const struct nf_conntrack *ct,
  80. const enum nf_conntrack_attr type);
  81. -extern u_int16_t nfct_get_attr_u16(const struct nf_conntrack *ct,
  82. +extern uint16_t nfct_get_attr_u16(const struct nf_conntrack *ct,
  83. const enum nf_conntrack_attr type);
  84. -extern u_int32_t nfct_get_attr_u32(const struct nf_conntrack *ct,
  85. +extern uint32_t nfct_get_attr_u32(const struct nf_conntrack *ct,
  86. const enum nf_conntrack_attr type);
  87. -extern u_int64_t nfct_get_attr_u64(const struct nf_conntrack *ct,
  88. +extern uint64_t nfct_get_attr_u64(const struct nf_conntrack *ct,
  89. const enum nf_conntrack_attr type);
  90. /* checker */
  91. @@ -477,20 +478,20 @@ extern struct nfct_filter *nfct_filter_c
  92. extern void nfct_filter_destroy(struct nfct_filter *filter);
  93. struct nfct_filter_proto {
  94. - u_int16_t proto;
  95. - u_int16_t state;
  96. + uint16_t proto;
  97. + uint16_t state;
  98. };
  99. struct nfct_filter_ipv4 {
  100. - u_int32_t addr;
  101. - u_int32_t mask;
  102. + uint32_t addr;
  103. + uint32_t mask;
  104. };
  105. struct nfct_filter_ipv6 {
  106. - u_int32_t addr[4];
  107. - u_int32_t mask[4];
  108. + uint32_t addr[4];
  109. + uint32_t mask[4];
  110. };
  111. enum nfct_filter_attr {
  112. - NFCT_FILTER_L4PROTO = 0, /* u_int32_t */
  113. + NFCT_FILTER_L4PROTO = 0, /* uint32_t */
  114. NFCT_FILTER_L4PROTO_STATE, /* struct nfct_filter_proto */
  115. NFCT_FILTER_SRC_IPV4, /* struct nfct_filter_ipv4 */
  116. NFCT_FILTER_DST_IPV4, /* struct nfct_filter_ipv4 */
  117. @@ -505,7 +506,7 @@ extern void nfct_filter_add_attr(struct
  118. extern void nfct_filter_add_attr_u32(struct nfct_filter *filter,
  119. const enum nfct_filter_attr attr,
  120. - const u_int32_t value);
  121. + const uint32_t value);
  122. enum nfct_filter_logic {
  123. NFCT_FILTER_LOGIC_POSITIVE,
  124. @@ -525,13 +526,13 @@ extern int nfct_filter_detach(int fd);
  125. struct nfct_filter_dump;
  126. struct nfct_filter_dump_mark {
  127. - u_int32_t val;
  128. - u_int32_t mask;
  129. + uint32_t val;
  130. + uint32_t mask;
  131. };
  132. enum nfct_filter_dump_attr {
  133. NFCT_FILTER_DUMP_MARK = 0, /* struct nfct_filter_dump_mark */
  134. - NFCT_FILTER_DUMP_L3NUM, /* u_int8_t */
  135. + NFCT_FILTER_DUMP_L3NUM, /* uint8_t */
  136. NFCT_FILTER_DUMP_MAX
  137. };
  138. @@ -545,7 +546,7 @@ void nfct_filter_dump_set_attr(struct nf
  139. void nfct_filter_dump_set_attr_u8(struct nfct_filter_dump *filter_dump,
  140. const enum nfct_filter_dump_attr type,
  141. - u_int8_t data);
  142. + uint8_t data);
  143. /* low level API: netlink functions */
  144. @@ -553,8 +554,8 @@ extern __attribute__((deprecated)) int
  145. nfct_build_conntrack(struct nfnl_subsys_handle *ssh,
  146. void *req,
  147. size_t size,
  148. - u_int16_t type,
  149. - u_int16_t flags,
  150. + uint16_t type,
  151. + uint16_t flags,
  152. const struct nf_conntrack *ct);
  153. extern __attribute__((deprecated))
  154. @@ -640,27 +641,27 @@ extern void nfexp_set_attr(struct nf_exp
  155. extern void nfexp_set_attr_u8(struct nf_expect *exp,
  156. const enum nf_expect_attr type,
  157. - u_int8_t value);
  158. + uint8_t value);
  159. extern void nfexp_set_attr_u16(struct nf_expect *exp,
  160. const enum nf_expect_attr type,
  161. - u_int16_t value);
  162. + uint16_t value);
  163. extern void nfexp_set_attr_u32(struct nf_expect *exp,
  164. const enum nf_expect_attr type,
  165. - u_int32_t value);
  166. + uint32_t value);
  167. /* getter */
  168. extern const void *nfexp_get_attr(const struct nf_expect *exp,
  169. const enum nf_expect_attr type);
  170. -extern u_int8_t nfexp_get_attr_u8(const struct nf_expect *exp,
  171. +extern uint8_t nfexp_get_attr_u8(const struct nf_expect *exp,
  172. const enum nf_expect_attr type);
  173. -extern u_int16_t nfexp_get_attr_u16(const struct nf_expect *exp,
  174. +extern uint16_t nfexp_get_attr_u16(const struct nf_expect *exp,
  175. const enum nf_expect_attr type);
  176. -extern u_int32_t nfexp_get_attr_u32(const struct nf_expect *exp,
  177. +extern uint32_t nfexp_get_attr_u32(const struct nf_expect *exp,
  178. const enum nf_expect_attr type);
  179. /* checker */
  180. @@ -700,8 +701,8 @@ extern __attribute__((deprecated))
  181. int nfexp_build_expect(struct nfnl_subsys_handle *ssh,
  182. void *req,
  183. size_t size,
  184. - u_int16_t type,
  185. - u_int16_t flags,
  186. + uint16_t type,
  187. + uint16_t flags,
  188. const struct nf_expect *exp);
  189. extern __attribute__((deprecated))