Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 May 2007 17:04:30 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Marko Zec <zec@icir.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>, Marko Zec <zec@freebsd.org>
Subject:   Re: PERFORCE change 119444 for review
Message-ID:  <463FBE8E.2070604@elischer.org>
In-Reply-To: <200705080135.33036.zec@icir.org>
References:  <200705072252.l47Mq4xX044896@repoman.freebsd.org> <463FB4D3.8080402@elischer.org> <200705080135.33036.zec@icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Marko Zec wrote:
> On Tuesday 08 May 2007 01:22:59 Julian Elischer wrote:
>> Marko Zec wrote:
>>> http://perforce.freebsd.org/chv.cgi?CH=119444
>>>
>>> Change 119444 by zec@zec_tpx32 on 2007/05/07 22:51:07
>>>
>>> 	Add support for free-floating ng_hub and ng_bridge instances.
>>>
>>> 	If a hook named "anchor" is created on a ng_hub or ng_bridge
>>> 	node instance, the node will not self-destruct even if it
>>> 	has no hooks connected.  Reminder: normal behavior is that
>>> 	hub or bridge nodes automatically destroy themselves when
>>> 	the last hook is disconnected.
>> What is this hook attached to?
>> One could just as easily send them a 'become persistant' message..
>> It would be a good candidate for a generic message.
>> Data is still sent to this hook. is that what is expected?
> 
> This hook should typically disappear right after it is created, if we 
> use it like this:
> 
> tpx32# ngctl mkpeer hub anchor anchor
> tpx32# ngctl l
> There are 3 total nodes:
> Name: ngctl69865    Type: socket      ID: 0000040d   Num hooks: 0
> Name: <unnamed>     Type: hub         ID: 0000040b   Num hooks: 0
> Name: em0           Type: ether       ID: 00000004   Num hooks: 0
> 
> Yes, the only purpose of this is to pin-up the node.  We cannot send 
> a 'become persistant' message to a node that doesn't exist...  Or do 
> you have an alternative suggestion to achieve this functionality?  I 
> really need this badly for IMUNES...
> 
> Cheers,
> 
> Marko

there is a hook when you create it.. you send it the message, then you can remove the hook.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?463FBE8E.2070604>