Re: carp shutdown in /etc/rc

2011-02-04 Thread Ted Unangst
On Fri, Feb 4, 2011 at 7:21 AM, Camiel Dobbelaar wrote: > With hundreds of (vlan) interfaces, a shutdown takes quite a while. ># bring carp interfaces down gracefully > - ifconfig | while read a b; do > + ifconfig carp | while read a b; do going back to

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Tobias Weingartner [2011-02-04 20:19]: > On Friday, February 4, Henning Brauer wrote: > > i don't think there is is special treatment for the carp group. but > > memory is fuzzy. we might very well "forget" to clean up when a group > > becomes empty. > There is a bit of an inconsistency when it

ksh completion for [, :, $

2011-02-04 Thread Alexander Polakov
Hi there, I sent this diff to bugs@ some time ago but haven't got any replies. Probably tech@ is a better place for it. The problem is known as bz#6006/user. The fix is taken from mksh (rev.1.4 for [ and rev.1.184 for others). It adds quoting character (QCHAR) when [, $, ` are prepended by \ to

Re: carp shutdown in /etc/rc

2011-02-04 Thread Tobias Weingartner
On Friday, February 4, Henning Brauer wrote: > > i don't think there is is special treatment for the carp group. but > memory is fuzzy. we might very well "forget" to clean up when a group > becomes empty. There is a bit of an inconsistency when it comes to 'ifconfig foo' style of the ifconfig co

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Jason McIntyre [2011-02-04 15:17]: > is this a useful distinction (even a valid one)? it sounds confusing to > me. yes: ifconfig carp0 -group carp > can you have carp interfaces that are not part of the carp group? > > that is, "ifconfig carp" will display all carp interfaces, or all > interf

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Camiel Dobbelaar [2011-02-04 15:30]: > On 4-2-2011 15:06, Stuart Henderson wrote: > > On 2011/02/04 14:37, Camiel Dobbelaar wrote: > >> On 4-2-2011 13:32, Henning Brauer wrote: > >>> * Camiel Dobbelaar [2011-02-04 13:21]: > With hundreds of (vlan) interfaces, a shutdown takes quite a while

Re: carp shutdown in /etc/rc

2011-02-04 Thread Stuart Henderson
On 2011/02/04 14:08, Jason McIntyre wrote: > > +If an interface group with that name exists, all interfaces in the group > > +will be shown. > > +Otherwise, > > +.Dq name > > +is treated as a type and all interfaces of that type will be displayed. > > is this a useful distinction (even a valid on

Re: carp shutdown in /etc/rc

2011-02-04 Thread Camiel Dobbelaar
On 4-2-2011 15:06, Stuart Henderson wrote: > On 2011/02/04 14:37, Camiel Dobbelaar wrote: >> On 4-2-2011 13:32, Henning Brauer wrote: >>> * Camiel Dobbelaar [2011-02-04 13:21]: With hundreds of (vlan) interfaces, a shutdown takes quite a while. Fix below. >>> >>> hmm. this relies on all

Re: carp shutdown in /etc/rc

2011-02-04 Thread Jason McIntyre
On Fri, Feb 04, 2011 at 02:37:43PM +0100, Camiel Dobbelaar wrote: > On 4-2-2011 13:32, Henning Brauer wrote: > > * Camiel Dobbelaar [2011-02-04 13:21]: > >> With hundreds of (vlan) interfaces, a shutdown takes quite a while. > >> Fix below. > > > > hmm. this relies on all carp interfaces being in

Re: carp shutdown in /etc/rc

2011-02-04 Thread Stuart Henderson
On 2011/02/04 14:37, Camiel Dobbelaar wrote: > On 4-2-2011 13:32, Henning Brauer wrote: > > * Camiel Dobbelaar [2011-02-04 13:21]: > >> With hundreds of (vlan) interfaces, a shutdown takes quite a while. > >> Fix below. > > > > hmm. this relies on all carp interfaces being in the carp interface >

Re: carp shutdown in /etc/rc

2011-02-04 Thread Camiel Dobbelaar
On 4-2-2011 13:32, Henning Brauer wrote: > * Camiel Dobbelaar [2011-02-04 13:21]: >> With hundreds of (vlan) interfaces, a shutdown takes quite a while. >> Fix below. > > hmm. this relies on all carp interfaces being in the carp interface > group. while that is the default, it is not necessarily

Re: antispoof quick for self

2011-02-04 Thread Stuart Henderson
** moving from misc@ to tech@, reply-to is set to tech@ ** Harald Dunkel wrote: > If I add "antispoof quick for self" to my pf.conf to enable > antispoofing on all interfaces, then I get these additional > rules: > > block drop in quick on ! self inet from <__automatic_3df3184e_0> to any > block

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Camiel Dobbelaar [2011-02-04 13:21]: > With hundreds of (vlan) interfaces, a shutdown takes quite a while. > Fix below. hmm. this relies on all carp interfaces being in the carp interface group. while that is the default, it is not necessarily so. -- Henning Brauer, h...@bsws.de, henn...@open

carp shutdown in /etc/rc

2011-02-04 Thread Camiel Dobbelaar
With hundreds of (vlan) interfaces, a shutdown takes quite a while. Fix below. -- Cam Index: rc === RCS file: /cvs/src/etc/rc,v retrieving revision 1.348 diff -u -r1.348 rc --- rc 14 Jan 2011 00:05:42 - 1.348 +++ rc 3 Fe