patch-tc_m_xt_c 1020 B

12345678910111213141516171819202122232425262728
  1. --- iproute2-2.6.38.orig/tc/m_xt.c 2011-03-17 18:05:47.000000000 +0100
  2. +++ iproute2-2.6.38/tc/m_xt.c 2011-11-09 16:15:44.527071563 +0100
  3. @@ -162,7 +162,11 @@ static int parse_ipt(struct action_util
  4. return -1;
  5. }
  6. tcipt_globals.opts =
  7. - xtables_merge_options(tcipt_globals.opts,
  8. + xtables_merge_options(
  9. +#if XTABLES_VERSION_CODE > 5
  10. + tcipt_globals.orig_opts,
  11. +#endif
  12. + tcipt_globals.opts,
  13. m->extra_opts,
  14. &m->option_offset);
  15. } else {
  16. @@ -307,7 +311,11 @@ print_ipt(struct action_util *au,FILE *
  17. }
  18. tcipt_globals.opts =
  19. - xtables_merge_options(tcipt_globals.opts,
  20. + xtables_merge_options(
  21. +#if XTABLES_VERSION_CODE > 5
  22. + tcipt_globals.orig_opts,
  23. +#endif
  24. + tcipt_globals.opts,
  25. m->extra_opts,
  26. &m->option_offset);
  27. } else {