Re: iproute2 compatibility
On Thu, 1 Oct 2015 20:06:00 + Ani Sinha wrote: > Hi Stephen : > > I was looking around but could not find clear evidence that a later > version of iproute2 is compatible with an older kernel. Specifically, > we are wondering if iproute2 v 3.6 is compatible with linux kernel > 3.4. Highly appreciate any pointers on this. > > thanks > ani Yes. iproute2 is supposed to compatible with older kernels. Obviously, if you try to use some new feature on older kernel, an error will result. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: iproute2 compatibility
On Thu, Oct 1, 2015 at 1:48 PM, Eric Dumazet wrote: > On Thu, 2015-10-01 at 13:06 -0700, Ani Sinha wrote: >> Hi Stephen : >> >> I was looking around but could not find clear evidence that a later >> version of iproute2 is compatible with an older kernel. Specifically, >> we are wondering if iproute2 v 3.6 is compatible with linux kernel >> 3.4. Highly appreciate any pointers on this. > > We try hard to keep iproute2 compatible with all kernels. > Thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: iproute2 compatibility
On Thu, 2015-10-01 at 13:06 -0700, Ani Sinha wrote: > Hi Stephen : > > I was looking around but could not find clear evidence that a later > version of iproute2 is compatible with an older kernel. Specifically, > we are wondering if iproute2 v 3.6 is compatible with linux kernel > 3.4. Highly appreciate any pointers on this. We try hard to keep iproute2 compatible with all kernels. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
iproute2 compatibility
Hi Stephen : I was looking around but could not find clear evidence that a later version of iproute2 is compatible with an older kernel. Specifically, we are wondering if iproute2 v 3.6 is compatible with linux kernel 3.4. Highly appreciate any pointers on this. thanks ani -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] [IPROUTE2] Compatibility with iptables 1.4.0
Hi Jamal, jamal wrote: > Pablo, below looks an oversight. > I think there are some libraries like the mark target need also to be > backward compatible. Shouldn't "mark" be in capital letters? >> lilsol:~# export IPTABLES_LIB_DIR=/root/iptables-1.4.0/extensions/ >> lilsol:~# tc actions add action ipt -j TOS --set-tos ^^^ this is OK >> lilsol:~# tc actions add action ipt -j mark --set-mark 3 ^^^ MARK I'm sorry for the breakage. We definitely need a library for iptables so this sort of stuff would not happen :( -- "Los honestos son inadaptados sociales" -- Les Luthiers -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] [IPROUTE2] Compatibility with iptables 1.4.0
I just submitted a tested, slightly reduced patch (example we dont need to register matches) and it works as expected now. Thanks for the excellent work Denys. Pablo, below looks an oversight. I think there are some libraries like the mark target need also to be backward compatible. cheers, jamal On Mon, 2007-24-12 at 11:30 -0500, jamal wrote: > Grr. I tested with a different iptables target and thought the rest work > in the same manner. iptables needs to be consistent. > > - > lilsol:~# export IPTABLES_LIB_DIR=/root/iptables-1.4.0/extensions/ > lilsol:~# tc actions add action ipt -j TOS --set-tos > Maximize-Reliability > tablename: mangle hook: NF_IP_POST_ROUTING > target: TOS set Maximize-Reliability index 0 > lilsol:~# tc actions ls action ipt > > action order 0: tablename: mangle hook: NF_IP_POST_ROUTING > target TOS set Maximize-Reliability > index 2 ref 1 bind 0 > // the above is what i tested > // below is what you did > lilsol:~# tc actions add action ipt -j mark --set-mark 3 > /root/iptables-1.4.0/extensions/: cannot read file data: Is a directory > failed to find target mark > > bad action parsing > parse_action: bad value (5:ipt)! > Illegal "action" > Command "add" is unknown, try "tc actions help". > lilsol:~# > > > Applying your patch > Seems corrupt; let me fix it up, test it and resend it to Stephen. > > cheers, > jamal > -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] [IPROUTE2] Compatibility with iptables 1.4.0
On Mon, 2007-24-12 at 18:07 +0200, Denys Fedoryshchenko wrote: > Hi, probably like this will be better? > Previous patch was not backward compatible. > > Btw i checked twice, name is changed from libipt_MARK to libxt_MARK. So > probably when you have tested this, your iproute2 was looking to old > libipt_MARK (iptables is not deleting old libraries on make install). > Grr. I tested with a different iptables target and thought the rest work in the same manner. iptables needs to be consistent. - lilsol:~# export IPTABLES_LIB_DIR=/root/iptables-1.4.0/extensions/ lilsol:~# tc actions add action ipt -j TOS --set-tos Maximize-Reliability tablename: mangle hook: NF_IP_POST_ROUTING target: TOS set Maximize-Reliability index 0 lilsol:~# tc actions ls action ipt action order 0: tablename: mangle hook: NF_IP_POST_ROUTING target TOS set Maximize-Reliability index 2 ref 1 bind 0 // the above is what i tested // below is what you did lilsol:~# tc actions add action ipt -j mark --set-mark 3 /root/iptables-1.4.0/extensions/: cannot read file data: Is a directory failed to find target mark bad action parsing parse_action: bad value (5:ipt)! Illegal "action" Command "add" is unknown, try "tc actions help". lilsol:~# Applying your patch Seems corrupt; let me fix it up, test it and resend it to Stephen. cheers, jamal -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] [IPROUTE2] Compatibility with iptables 1.4.0
Hi, probably like this will be better? Previous patch was not backward compatible. Btw i checked twice, name is changed from libipt_MARK to libxt_MARK. So probably when you have tested this, your iproute2 was looking to old libipt_MARK (iptables is not deleting old libraries on make install). - New iptables 1.4.0 need additional dummy functions, and some library names is changed from libipt to libxt. It is prefferable also to open libxt_ first, as newer "style". Signed-off-by: Denys Fedoryshchenko <[EMAIL PROTECTED]> --- drivers/watchdog/w83697hf_wdt.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff -Naur iproute2/tc/m_ipt.c iproute2-new/tc/m_ipt.c --- iproute2/tc/m_ipt.c 2007-12-24 16:59:19.0 +0200 +++ iproute2-new/tc/m_ipt.c 2007-12-24 17:46:14.0 +0200 @@ -69,6 +69,27 @@ } void +xtables_register_target(struct iptables_target *me) +{ + me->next = t_list; + t_list = me; +} + + +void +xtables_register_match(struct iptables_target *me) +{ + me->next = t_list; + t_list = me; +} + +void exit_tryhelp(int status) { fprintf(stderr, "Try `%s -h' or '%s --help' for more information.\n", @@ -248,16 +269,25 @@ } } - sprintf(path, "%s/libipt_%s.so",lib_dir, new_name); + sprintf(path, "%s/libxt_%s.so",lib_dir, new_name); handle = dlopen(path, RTLD_LAZY); if (!handle) { - sprintf(path, lib_dir, "/libipt_%s.so", lname); + sprintf(path, "%s/libipt_%s.so", lib_dir , new_name); handle = dlopen(path, RTLD_LAZY); - if (!handle) { - fputs(dlerror(), stderr); - printf("\n"); - return NULL; - } + } + if (!handle) { + sprintf(path, "%s/libxt_%s.so", lib_dir , lname); + handle = dlopen(path, RTLD_LAZY); + } + if (!handle) { + sprintf(path, "%s/libipt_%s.so", lib_dir , lname); + handle = dlopen(path, RTLD_LAZY); + } + if (!handle) { + sprintf(path, "%s/libipt_%s.so", lib_dir , lname); + fputs(dlerror(), stderr); + printf("\n"); + return NULL; } m = dlsym(handle, new_name); -- Denys Fedoryshchenko Technical Manager Virtual ISP S.A.L. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html