iptables-1.6.0-musl-fixes.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- iptables-1.4.12.1.o/extensions/libip6t_ipv6header.c
  2. +++ iptables-1.4.12.1/extensions/libip6t_ipv6header.c
  3. @@ -10,6 +10,9 @@
  4. #include <netdb.h>
  5. #include <xtables.h>
  6. #include <linux/netfilter_ipv6/ip6t_ipv6header.h>
  7. +#ifndef IPPROTO_HOPOPTS
  8. +# define IPPROTO_HOPOPTS 0
  9. +#endif
  10. enum {
  11. O_HEADER = 0,
  12. --- iptables-1.4.12.1.o/extensions/libxt_TCPOPTSTRIP.c
  13. +++ iptables-1.4.12.1/extensions/libxt_TCPOPTSTRIP.c
  14. @@ -12,6 +12,21 @@
  15. #ifndef TCPOPT_MD5SIG
  16. # define TCPOPT_MD5SIG 19
  17. #endif
  18. +#ifndef TCPOPT_MAXSEG
  19. +# define TCPOPT_MAXSEG 2
  20. +#endif
  21. +#ifndef TCPOPT_WINDOW
  22. +# define TCPOPT_WINDOW 3
  23. +#endif
  24. +#ifndef TCPOPT_SACK_PERMITTED
  25. +# define TCPOPT_SACK_PERMITTED 4
  26. +#endif
  27. +#ifndef TCPOPT_SACK
  28. +# define TCPOPT_SACK 5
  29. +#endif
  30. +#ifndef TCPOPT_TIMESTAMP
  31. +# define TCPOPT_TIMESTAMP 8
  32. +#endif
  33. enum {
  34. O_STRIP_OPTION = 0,
  35. --- iptables-1.4.12.1.o/include/linux/netfilter_ipv4/ip_tables.h
  36. +++ iptables-1.4.12.1/include/linux/netfilter_ipv4/ip_tables.h
  37. @@ -16,6 +16,7 @@
  38. #define _IPTABLES_H
  39. #include <linux/types.h>
  40. +#include <sys/types.h>
  41. #include <linux/netfilter_ipv4.h>