700-disable-legacy-revisions.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --- a/extensions/libxt_conntrack.c
  2. +++ b/extensions/libxt_conntrack.c
  3. @@ -1389,6 +1389,7 @@ static int conntrack3_mt6_xlate(struct x
  4. }
  5. static struct xtables_match conntrack_mt_reg[] = {
  6. +#ifndef NO_LEGACY
  7. {
  8. .version = XTABLES_VERSION,
  9. .name = "conntrack",
  10. @@ -1464,6 +1465,7 @@ static struct xtables_match conntrack_mt
  11. .alias = conntrack_print_name_alias,
  12. .x6_options = conntrack2_mt_opts,
  13. },
  14. +#endif
  15. {
  16. .version = XTABLES_VERSION,
  17. .name = "conntrack",
  18. @@ -1496,6 +1498,7 @@ static struct xtables_match conntrack_mt
  19. .x6_options = conntrack3_mt_opts,
  20. .xlate = conntrack3_mt6_xlate,
  21. },
  22. +#ifndef NO_LEGACY
  23. {
  24. .family = NFPROTO_UNSPEC,
  25. .name = "state",
  26. @@ -1526,6 +1529,8 @@ static struct xtables_match conntrack_mt
  27. .x6_parse = state_ct23_parse,
  28. .x6_options = state_opts,
  29. },
  30. +#endif
  31. +#ifndef NO_LEGACY
  32. {
  33. .family = NFPROTO_UNSPEC,
  34. .name = "state",
  35. @@ -1555,6 +1560,7 @@ static struct xtables_match conntrack_mt
  36. .x6_parse = state_parse,
  37. .x6_options = state_opts,
  38. },
  39. +#endif
  40. };
  41. void _init(void)
  42. --- a/extensions/libxt_CT.c
  43. +++ b/extensions/libxt_CT.c
  44. @@ -349,6 +349,7 @@ static void notrack_ct2_tg_init(struct x
  45. }
  46. static struct xtables_target ct_target_reg[] = {
  47. +#ifndef NO_LEGACY
  48. {
  49. .family = NFPROTO_UNSPEC,
  50. .name = "CT",
  51. @@ -374,6 +375,7 @@ static struct xtables_target ct_target_r
  52. .x6_parse = ct_parse_v1,
  53. .x6_options = ct_opts_v1,
  54. },
  55. +#endif
  56. {
  57. .family = NFPROTO_UNSPEC,
  58. .name = "CT",
  59. @@ -388,6 +390,7 @@ static struct xtables_target ct_target_r
  60. .x6_parse = ct_parse_v1,
  61. .x6_options = ct_opts_v1,
  62. },
  63. +#ifndef NO_LEGACY
  64. {
  65. .family = NFPROTO_UNSPEC,
  66. .name = "NOTRACK",
  67. @@ -425,6 +428,7 @@ static struct xtables_target ct_target_r
  68. .revision = 0,
  69. .version = XTABLES_VERSION,
  70. },
  71. +#endif
  72. };
  73. void _init(void)
  74. --- a/extensions/libxt_multiport.c
  75. +++ b/extensions/libxt_multiport.c
  76. @@ -571,6 +571,7 @@ static int multiport_xlate6_v1(struct xt
  77. }
  78. static struct xtables_match multiport_mt_reg[] = {
  79. +#ifndef NO_LEGACY
  80. {
  81. .family = NFPROTO_IPV4,
  82. .name = "multiport",
  83. @@ -601,6 +602,7 @@ static struct xtables_match multiport_mt
  84. .x6_options = multiport_opts,
  85. .xlate = multiport_xlate6,
  86. },
  87. +#endif
  88. {
  89. .family = NFPROTO_IPV4,
  90. .name = "multiport",