patch-extensions_libxt_TCPOPTSTRIP_c 591 B

123456789101112131415161718192021222324
  1. --- iptables-1.4.20.orig/extensions/libxt_TCPOPTSTRIP.c 2013-08-06 17:48:43.000000000 +0200
  2. +++ iptables-1.4.20/extensions/libxt_TCPOPTSTRIP.c 2013-08-15 17:02:18.802154795 +0200
  3. @@ -12,6 +12,21 @@
  4. #ifndef TCPOPT_MD5SIG
  5. # define TCPOPT_MD5SIG 19
  6. #endif
  7. +#ifndef TCPOPT_MAXSEG
  8. +# define TCPOPT_MAXSEG 2
  9. +#endif
  10. +#ifndef TCPOPT_WINDOW
  11. +# define TCPOPT_WINDOW 3
  12. +#endif
  13. +#ifndef TCPOPT_SACK_PERMITTED
  14. +# define TCPOPT_SACK_PERMITTED 4
  15. +#endif
  16. +#ifndef TCPOPT_SACK
  17. +# define TCPOPT_SACK 5
  18. +#endif
  19. +#ifndef TCPOPT_TIMESTAMP
  20. +# define TCPOPT_TIMESTAMP 8
  21. +#endif
  22. enum {
  23. O_STRIP_OPTION = 0,