patch-include_libnfnetlink_linux_nfnetlink_compat_h 737 B

12345678910111213141516171819202122
  1. --- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink_compat.h 2008-06-18 14:36:57.000000000 +0200
  2. +++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink_compat.h 2014-04-08 09:00:23.000000000 +0200
  3. @@ -3,6 +3,8 @@
  4. #ifndef __KERNEL__
  5. /* Old nfnetlink macros for userspace */
  6. +#include <stdint.h>
  7. +
  8. /* nfnetlink groups: Up to 32 maximum */
  9. #define NF_NETLINK_CONNTRACK_NEW 0x00000001
  10. #define NF_NETLINK_CONNTRACK_UPDATE 0x00000002
  11. @@ -20,8 +22,8 @@
  12. struct nfattr
  13. {
  14. - u_int16_t nfa_len;
  15. - u_int16_t nfa_type; /* we use 15 bits for the type, and the highest
  16. + uint16_t nfa_len;
  17. + uint16_t nfa_type; /* we use 15 bits for the type, and the highest
  18. * bit to indicate whether the payload is nested */
  19. };