700-disable-legacy-revisions.patch 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Index: iptables-1.4.21/extensions/libxt_conntrack.c
  2. ===================================================================
  3. --- iptables-1.4.21.orig/extensions/libxt_conntrack.c
  4. +++ iptables-1.4.21/extensions/libxt_conntrack.c
  5. @@ -1157,6 +1157,7 @@ static void state_save(const void *ip, c
  6. }
  7. static struct xtables_match conntrack_mt_reg[] = {
  8. +#ifndef NO_LEGACY
  9. {
  10. .version = XTABLES_VERSION,
  11. .name = "conntrack",
  12. @@ -1232,6 +1233,7 @@ static struct xtables_match conntrack_mt
  13. .alias = conntrack_print_name_alias,
  14. .x6_options = conntrack2_mt_opts,
  15. },
  16. +#endif
  17. {
  18. .version = XTABLES_VERSION,
  19. .name = "conntrack",
  20. @@ -1262,6 +1264,7 @@ static struct xtables_match conntrack_mt
  21. .alias = conntrack_print_name_alias,
  22. .x6_options = conntrack3_mt_opts,
  23. },
  24. +#ifndef NO_LEGACY
  25. {
  26. .family = NFPROTO_UNSPEC,
  27. .name = "state",
  28. @@ -1292,6 +1295,7 @@ static struct xtables_match conntrack_mt
  29. .x6_parse = state_ct23_parse,
  30. .x6_options = state_opts,
  31. },
  32. +#endif
  33. {
  34. .family = NFPROTO_UNSPEC,
  35. .name = "state",
  36. @@ -1307,6 +1311,7 @@ static struct xtables_match conntrack_mt
  37. .x6_parse = state_ct23_parse,
  38. .x6_options = state_opts,
  39. },
  40. +#ifndef NO_LEGACY
  41. {
  42. .family = NFPROTO_UNSPEC,
  43. .name = "state",
  44. @@ -1320,6 +1325,7 @@ static struct xtables_match conntrack_mt
  45. .x6_parse = state_parse,
  46. .x6_options = state_opts,
  47. },
  48. +#endif
  49. };
  50. void _init(void)
  51. Index: iptables-1.4.21/extensions/libxt_CT.c
  52. ===================================================================
  53. --- iptables-1.4.21.orig/extensions/libxt_CT.c
  54. +++ iptables-1.4.21/extensions/libxt_CT.c
  55. @@ -290,6 +290,7 @@ static void notrack_ct2_tg_init(struct x
  56. }
  57. static struct xtables_target ct_target_reg[] = {
  58. +#ifndef NO_LEGACY
  59. {
  60. .family = NFPROTO_UNSPEC,
  61. .name = "CT",
  62. @@ -315,6 +316,7 @@ static struct xtables_target ct_target_r
  63. .x6_parse = ct_parse_v1,
  64. .x6_options = ct_opts_v1,
  65. },
  66. +#endif
  67. {
  68. .family = NFPROTO_UNSPEC,
  69. .name = "CT",
  70. @@ -329,6 +331,7 @@ static struct xtables_target ct_target_r
  71. .x6_parse = ct_parse_v1,
  72. .x6_options = ct_opts_v1,
  73. },
  74. +#ifndef NO_LEGACY
  75. {
  76. .family = NFPROTO_UNSPEC,
  77. .name = "NOTRACK",
  78. @@ -366,6 +369,7 @@ static struct xtables_target ct_target_r
  79. .revision = 0,
  80. .version = XTABLES_VERSION,
  81. },
  82. +#endif
  83. };
  84. void _init(void)
  85. Index: iptables-1.4.21/extensions/libxt_multiport.c
  86. ===================================================================
  87. --- iptables-1.4.21.orig/extensions/libxt_multiport.c
  88. +++ iptables-1.4.21/extensions/libxt_multiport.c
  89. @@ -469,6 +469,7 @@ static void multiport_save6_v1(const voi
  90. }
  91. static struct xtables_match multiport_mt_reg[] = {
  92. +#ifndef NO_LEGACY
  93. {
  94. .family = NFPROTO_IPV4,
  95. .name = "multiport",
  96. @@ -497,6 +498,7 @@ static struct xtables_match multiport_mt
  97. .save = multiport_save6,
  98. .x6_options = multiport_opts,
  99. },
  100. +#endif
  101. {
  102. .family = NFPROTO_IPV4,
  103. .name = "multiport",