Re: Some questions about libports and notification of ports

2008-08-23 Thread Thomas Bushnell BSG
On Sat, 2008-08-23 at 09:36 -0700, Thomas Bushnell BSG wrote: > So you have two ports. When the one going to the user is destroyed, you > need to tell the device not to send any more packets. > > And we have a way to do that: by calling device_set_filter, and clearing > out the port there. The d

Re: Some questions about libports and notification of ports

2008-08-23 Thread Thomas Bushnell BSG
On Sat, 2008-08-23 at 13:25 +0200, Da Zheng wrote: > I have to make sure every ports has been destroyed so when the > translator exits, it can check if there are still users. Huh? When the translator exits, all the ports are going to be destroyed anyway. > OK, maybe I should make the things mor

Re: Some questions about libports and notification of ports

2008-08-23 Thread Da Zheng
Thomas Bushnell BSG wrote: > struct port_info *foo; > ports_create_port(portclass, bucket, sizeof(*foo), &foo); > > ports_port_deref(foo); // ports_port_destroy(foo) doesn't work here. It works just fine, *if your intention is to delete the receive right*-- a rare and unusual thi

Re: How to provide proxy nodes

2008-08-23 Thread Sergiu Ivanov
Hello, On Fri, Aug 8, 2008 at 2:13 AM, <[EMAIL PROTECTED]> wrote: > >On Wed, Aug 06, 2008 at 09:11:08PM +0300, Sergiu Ivanov wrote: > >> On Wed, Aug 6, 2008 at 7:53 PM, <[EMAIL PROTECTED]> wrote: > > > > That's why I wonder whether we should do the further lookup in > > > nsmux, or just let the cl