Re: netstat default if

2011-01-09 Thread Nicholas Marriott
Maybe want to use IFG_EGRESS instead of "egress" but otherwise reads fine and works great, ok nicm. On Fri, Jan 07, 2011 at 09:36:23PM -0500, Ted Unangst wrote: > On Sat, 8 Jan 2011, Nicholas Marriott wrote: > > > Nice idea, but maybe it could pick the same one that the interface group > > "egr

Re: netstat default if

2011-01-08 Thread Henning Brauer
* Bob Beck [2011-01-08 18:10]: > >> Nice idea, but maybe it could pick the same one that the interface group > >> "egress" defaults to? > > > > You can have more than one interface in group egress. but that is rather the exception. > Perhaps the one in egress with the most traffic? so i get a d

Re: netstat default if

2011-01-08 Thread Theo de Raadt
> >> Nice idea, but maybe it could pick the same one that the interface group > >> "egress" defaults to? > > > > You can have more than one interface in group egress. > > Perhaps the one in egress with the most traffic? First egress will be fine. The semantic of "most" is troubling; run it two t

Re: netstat default if

2011-01-08 Thread Bob Beck
>> Nice idea, but maybe it could pick the same one that the interface group >> "egress" defaults to? > > You can have more than one interface in group egress. Perhaps the one in egress with the most traffic?

Re: netstat default if

2011-01-08 Thread Christian Weisgerber
Nicholas Marriott wrote: > Nice idea, but maybe it could pick the same one that the interface group > "egress" defaults to? You can have more than one interface in group egress. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: netstat default if

2011-01-07 Thread Ted Unangst
On Sat, 8 Jan 2011, Nicholas Marriott wrote: > Nice idea, but maybe it could pick the same one that the interface group > "egress" defaults to? You're lucky that gives me the same answer. :) Index: if.c === RCS file: /home/tedu/cvs/

Re: netstat default if

2011-01-07 Thread Theo de Raadt
> Nice idea, but maybe it could pick the same one that the interface group > "egress" defaults to? Ooooh, that is even better than what I suggested to tedu. Right on the money, that is exactly what I would like it to default to!

Re: netstat default if

2011-01-07 Thread Nicholas Marriott
Hi Nice idea, but maybe it could pick the same one that the interface group "egress" defaults to? On Fri, Jan 07, 2011 at 07:36:08PM -0500, Ted Unangst wrote: > i like to run netstat -w 1 -b to watch the bytes. however, netstat > defaults to picking the last interface if you don't specify -I.

netstat default if

2011-01-07 Thread Ted Unangst
i like to run netstat -w 1 -b to watch the bytes. however, netstat defaults to picking the last interface if you don't specify -I. on my system, that happens to be pflog. not helpful. the diff below makes some attempt at picking an interesting interface by selecting the one with the most tra