Hello.
I try to send and receive ethernet packets on very low level in my
kernel module.
When i change routin table (via route command) my network is freeze for
~15 seconds and my application can't send and receive any packets.
Is it normal or bug somewhere in my application?
Can i change this behavior of route system, maybe change some timeouts,
or immediately flush route (rt_flush() ?) table?
Thanks.
Hello.
I try to send and receive ethernet packets on very low level in my
kernel module.
When i change (add or delete entry) routin table (via route command) my
network is freeze for ~15 seconds and my application can't send and
receive any packets.
Is it normal or bug somewhere in my application?
Can i change this behavior of route system? Maybe change some timeouts,
or immediately flush route (rt_flush() ?) table?
Thanks.
Le dimanche 18 avril 2010 à 14:15 +0300, Oleg Kutkov a écrit :
> Hello.
> I try to send and receive ethernet packets on very low level in my
> kernel module.
> When i change (add or delete entry) routin table (via route command) my
> network is freeze for ~15 seconds and my application can't send and
> receive any packets.
> Is it normal or bug somewhere in my application?
> Can i change this behavior of route system? Maybe change some timeouts,
> or immediately flush route (rt_flush() ?) table?
>
> Thanks.
I guess its a bug in your module, since user apps dont experience this
interesting phenomena :)
On 18/04/10 12:15, Oleg Kutkov wrote:
> Hello.
> I try to send and receive ethernet packets on very low level in my
> kernel module.
> When i change (add or delete entry) routin table (via route command)
> my network is freeze for ~15 seconds and my application can't send and
> receive any packets.
> Is it normal or bug somewhere in my application?
> Can i change this behavior of route system? Maybe change some
> timeouts, or immediately flush route (rt_flush() ?) table?
Depending on your routing configuration the change may be causing the
problem. Have you tried flushing the route cache (as opposed to the main
routing table)?
# ip route flush table cache
matt
Thank, but this does not help me. Maybe it really my bug.
2010/4/18 Matt <[email protected]>:
> On 18/04/10 12:15, Oleg Kutkov wrote:
>>
>> Hello.
>> I try to send and receive ethernet packets on very low level in my kernel
>> module.
>> When i change (add or delete entry) routin table (via route command) my
>> network is freeze for ~15 seconds and my application can't send and receive
>> any packets.
>> Is it normal or bug somewhere in my application?
>> Can i change this behavior of route system? Maybe change some timeouts, or
>> immediately flush route (rt_flush() ?) table?
>
> Depending on your routing configuration the change may be causing the
> problem. Have you tried flushing the route cache (as opposed to the main
> routing table)?
>
> # ip route flush table cache
>
> matt
>