Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-26 Thread Alon Bar-Lev
On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > > iptunnel.c:(.text+0x51c): undefined reference to `__constant_htons' > > iptunnel.o:iptunnel.c:(.text+0x535): more undefined references to > > `__constant_htons' follow > > collect2: ld returned 1 exit status > > make[1]: *** [ip] Error 1

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-26 Thread Stephen Hemminger
On Sat, 26 Jan 2008 10:58:58 +0200 "Alon Bar-Lev" <[EMAIL PROTECTED]> wrote: > On 1/26/08, Alon Bar-Lev <[EMAIL PROTECTED]> wrote: > > On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > > > The issue is that iproute is just blindly sending the deletes and > > > not asking for acknowledgmen

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-26 Thread Stephen Hemminger
On Sat, 26 Jan 2008 10:58:58 +0200 "Alon Bar-Lev" <[EMAIL PROTECTED]> wrote: > On 1/26/08, Alon Bar-Lev <[EMAIL PROTECTED]> wrote: > > On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > > > The issue is that iproute is just blindly sending the deletes and > > > not asking for acknowledgmen

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-26 Thread Stephen Hemminger
On Sat, 26 Jan 2008 10:58:58 +0200 "Alon Bar-Lev" <[EMAIL PROTECTED]> wrote: > On 1/26/08, Alon Bar-Lev <[EMAIL PROTECTED]> wrote: > > On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > > > The issue is that iproute is just blindly sending the deletes and > > > not asking for acknowledgmen

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-26 Thread Alon Bar-Lev
On 1/26/08, Alon Bar-Lev <[EMAIL PROTECTED]> wrote: > On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > > The issue is that iproute is just blindly sending the deletes and > > not asking for acknowledgment status. Here is a trivial patch to iproute > > to fix that, but the problem is that

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-25 Thread Alon Bar-Lev
On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > The issue is that iproute is just blindly sending the deletes and > not asking for acknowledgment status. Here is a trivial patch to iproute > to fix that, but the problem is that it means it will slow down bulk removal. > > Maybe it should

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-25 Thread Stephen Hemminger
On Sat, 26 Jan 2008 01:00:34 +0200 "Alon Bar-Lev" <[EMAIL PROTECTED]> wrote: > Hello, > > When executing the following command using unprivileged users there is > an infinite loop... > /sbin/ip route flush dev eth1 > > Execution with -s produces: > *** Round 28153, deleting 2 entries *** > > **

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-25 Thread Alon Bar-Lev
Thanks for quick response! I tried to figure out how to do this, it looks like the libnelink does this anyway... I must missed something. Can you please help? On 1/26/08, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > On Sat, 26 Jan 2008 01:00:34 +0200 > "Alon Bar-Lev" <[EMAIL PROTECTED]> wrote: >

Re: iproute2 (addr flush) infinite loop when unprivileged users

2008-01-25 Thread Stephen Hemminger
On Sat, 26 Jan 2008 01:00:34 +0200 "Alon Bar-Lev" <[EMAIL PROTECTED]> wrote: > Hello, > > When executing the following command using unprivileged users there is > an infinite loop... > /sbin/ip route flush dev eth1 > > Execution with -s produces: > *** Round 28153, deleting 2 entries *** > > **

iproute2 (addr flush) infinite loop when unprivileged users

2008-01-25 Thread Alon Bar-Lev
Hello, When executing the following command using unprivileged users there is an infinite loop... /sbin/ip route flush dev eth1 Execution with -s produces: *** Round 28153, deleting 2 entries *** *** Round 28154, deleting 2 entries *** *** Round 28155, deleting 2 entries *** *** Round 28156, d