Hi All,
Building trunk rev 39505 I found that ipruote2 (even
updating to the latest
v2.6.39) does not compile with iptables v1.4.12
(new xtables API requires one
more argument). Found a patch on the
internet (this worked for me).
all the best,
helasz
diff --git
a/tc/m_xt.c b/tc/m_xt.c
index 651a59e..13bf19f 100644
---
a/tc/m_xt.c
+++ b/tc/m_xt.c
@@ -160,9 +160,13 @@ static int
parse_ipt(struct action_util *a,int *argc_p,
return -1;
}
tcipt_globals.opts =
- xtables_merge_options(tcipt_globals.opts,
-
m->extra_opts,
- &m->option_offset);
+ xtables_merge_options(
+#if
(XTABLES_VERSION_CODE >= 6)
+ tcipt_globals.orig_opts,
+#endif
+
tcipt_globals.opts,
+ m->extra_opts,
+ &m->option_offset);
} else
{
fprintf(stderr," failed to find target %snn", optarg);
return -1;
@@
-305,7 +309,11 @@ print_ipt(struct action_util *au,FILE * f,
struct
rtattr *arg)
}
tcipt_globals.opts =
-
xtables_merge_options(tcipt_globals.opts,
+ xtables_merge_options(
+#if
(XTABLES_VERSION_CODE >= 6)
+ tcipt_globals.orig_opts,
+#endif
+
tcipt_globals.opts,
m->extra_opts,
&m->option_offset);
} else
{
-------------------------
Megújult a G-Mail! Látogass el a
www.gmail.hu [1] oldalra!
Links:
------
[1] http://gmail.hu
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2