Network activity after route changes
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.
Quoted 11 lines · Oleg Kutkov
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 :)
Quoted 5 lines · Oleg Kutkov
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]>:
Quoted 20 lines · Oleg Kutkov
Quoted 10 lines
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 cachematt