Bug#355756: ntop default interface

2006-06-03 Thread Ola Lundqvist
tags 355756 + patch thanks Thank you for the suggestions. I'll check for the ip command and if available, select the first solution, if not check for route and if not that then default to the current one. Thanks a lot. Regards, // Ola On Wed, May 31, 2006 at 11:52:03PM +0200, Sven Mueller wrot

Bug#355756: ntop default interface

2006-05-31 Thread Sven Mueller
Hi. Here is a script snippet which detects the interface containing the default route. I would guess that this is usually the interface the user will want to monitor. DEFAULTDEV="`ip route | grep default | \ sed -e 's/.*dev //;s/ *src.*//' | \ sort -u`" Perhaps this hel