Re: Confusing netgraph error

2000-12-12 Thread Archie Cobbs
Mark Wright writes: > sj# ngctl mkpeer lmc0: frame_relay rawdata downstream > sj# ngctl mkpeer lmc0:rawdata lmi dlci0 auto0 > sj# ngctl mkpeer lmc0:rawdata rfc1490 dlci15 downstream > ngctl: send msg: No such file or directory > > What does that mean? Should I be concerned that ifconfig -a doesn'

Re: need mbuf generic free() hook

2000-12-12 Thread Alfred Perlstein
* Bosko Milekic <[EMAIL PROTECTED]> [001212 20:15] wrote: > > Alfred, > > You've brought this up before. This looks familiar to your earlier > post(s) regarding how to "abuse m_ext." Mind you, I may be mistaken, but > that would be because this isn't being made awfully clear. >

Re: need mbuf generic free() hook

2000-12-12 Thread Bosko Milekic
Alfred, You've brought this up before. This looks familiar to your earlier post(s) regarding how to "abuse m_ext." Mind you, I may be mistaken, but that would be because this isn't being made awfully clear. Earlier you talked about forcing a custom free routine to be called

Re: MEXT_IS_REF broken.

2000-12-12 Thread Jonathan Lemon
In article [EMAIL PROTECTED]> you write: ><<[EMAIL PROTECTED]> said: > >> Actually, in truth I think you can get the code right like so: > >> long x = _mmm->m_ext.ref_cnt->refcnt; >> while (!atomic_cmpset_long(&_mmm->m_ext.ref_cnt->refcnt, x - 1, x)) >> ; > >Cool! You've just (almost) reinv

Re: MEXT_IS_REF broken.

2000-12-12 Thread Jason Evans
On Tue, Dec 12, 2000 at 07:44:36PM -0800, Alfred Perlstein wrote: > Ok, can you please commit the fix then? Bosko is currently working up a patch that should be committed tonight sometime. By the way, thanks for the bug report. =) Jason To Unsubscribe: send mail to [EMAIL PROTECTED] with "uns

Re: MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
* Garrett Wollman <[EMAIL PROTECTED]> [001212 18:50] wrote: > < said: > > > Actually, in truth I think you can get the code right like so: > > > long x = _mmm->m_ext.ref_cnt->refcnt; > > while (!atomic_cmpset_long(&_mmm->m_ext.ref_cnt->refcnt, x - 1, x)) > > ; > > Cool! You've just (almost

Re: MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
* Jason Evans <[EMAIL PROTECTED]> [001212 18:39] wrote: > On Tue, Dec 12, 2000 at 05:59:37PM -0800, Alfred Perlstein wrote: > > * Jason Evans <[EMAIL PROTECTED]> [001212 14:32] wrote: > > > A safe version: > > > --- > > > #def

Re: MEXT_IS_REF broken.

2000-12-12 Thread Garrett Wollman
< said: > Actually, in truth I think you can get the code right like so: > long x = _mmm->m_ext.ref_cnt->refcnt; > while (!atomic_cmpset_long(&_mmm->m_ext.ref_cnt->refcnt, x - 1, x)) > ; Cool! You've just (almost) reinvented non-blocking parallel reference-counts. Of course, what you re

Re: MEXT_IS_REF broken.

2000-12-12 Thread Jason Evans
On Tue, Dec 12, 2000 at 05:59:37PM -0800, Alfred Perlstein wrote: > And since Chuck backs me up on this, can we consider this discussion > over as soon as John commits his code? No. Jason To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

Re: MEXT_IS_REF broken.

2000-12-12 Thread Bosko Milekic
On Tue, 12 Dec 2000, Alfred Perlstein wrote: [...] > And since Chuck backs me up on this, can we consider this discussion > over as soon as John commits his code? I think this is a valid point. This is not the first time the need for proper refcount "interface" arises, or at

Re: MEXT_IS_REF broken.

2000-12-12 Thread Jason Evans
On Tue, Dec 12, 2000 at 05:59:37PM -0800, Alfred Perlstein wrote: > * Jason Evans <[EMAIL PROTECTED]> [001212 14:32] wrote: > > A safe version: > > --- > > #define MEXTFREE(m) do {

Re: MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
* John Baldwin <[EMAIL PROTECTED]> [001212 15:19] wrote: > > On 12-Dec-00 Julian Elischer wrote: > > John Baldwin wrote: > >> > >> On 12-Dec-00 Alfred Perlstein wrote: > >> > grr... > >> > > >> > considering this: > >> > > >> >#define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) > >> > > >> >

Re: MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
* Jason Evans <[EMAIL PROTECTED]> [001212 14:32] wrote: > On Tue, Dec 12, 2000 at 01:51:00AM -0800, Alfred Perlstein wrote: > > A safe version: > --- > #define MEXTFREE(m) do {

Packets Per Second

2000-12-12 Thread Holtor
Hello all, Does anyone know how many packets per second a box running freebsd 4.2-stable with 2 fast ethernet cards could push? It would be acting as a router/firewall. I know this depends on CPU, lets say its a PIII 850 with 128mb ram. If there is an equation to help figure it out I would love

Re: MEXT_IS_REF broken.

2000-12-12 Thread John Baldwin
On 12-Dec-00 Julian Elischer wrote: > John Baldwin wrote: >> >> On 12-Dec-00 Alfred Perlstein wrote: >> > grr... >> > >> > considering this: >> > >> >#define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) >> > >> >#define MEXT_REM_REF(m) do {\ >> > KASSERT((m)->m_ext

Re: MEXT_IS_REF broken.

2000-12-12 Thread John Baldwin
On 12-Dec-00 Jason Evans wrote: > On Tue, Dec 12, 2000 at 01:51:00AM -0800, Alfred Perlstein wrote: >> * Alfred Perlstein <[EMAIL PROTECTED]> [001212 01:44] wrote: >> > grr... >> > >> > considering this: >> > >> > #define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) >> > >> > #define MEXT_R

Re: MEXT_IS_REF broken.

2000-12-12 Thread Jason Evans
On Tue, Dec 12, 2000 at 01:51:00AM -0800, Alfred Perlstein wrote: > * Alfred Perlstein <[EMAIL PROTECTED]> [001212 01:44] wrote: > > grr... > > > > considering this: > > > > #define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) > > > > #define MEXT_REM_REF(m) do {\ > >

Re: MEXT_IS_REF broken.

2000-12-12 Thread Julian Elischer
John Baldwin wrote: > > On 12-Dec-00 Alfred Perlstein wrote: > > grr... > > > > considering this: > > > >#define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) > > > >#define MEXT_REM_REF(m) do {\ > > KASSERT((m)->m_ext.ref_cnt->refcnt > 0, ("m_ext refcnt < 0")); \ >

Re: ipfilter _and_ ipfirewall?

2000-12-12 Thread Bill Fumerola
On Tue, Dec 12, 2000 at 08:10:16AM +0100, Martin Eggen wrote: > Would having the following in a kernel config work? > > options IPFIREWALL > options IPFIREWALL_DEFAULT_TO_ACCEPT > options DUMMYNET > options IPFILTER > > That is, to use ipfw exclusively for bandwidth limiting with

Re: MEXT_IS_REF broken.

2000-12-12 Thread John Baldwin
On 12-Dec-00 Alfred Perlstein wrote: > * John Baldwin <[EMAIL PROTECTED]> [001212 08:39] wrote: >> >> On 12-Dec-00 Alfred Perlstein wrote: >> > grr... >> > >> > considering this: >> > >> >#define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) >> > >> >#define MEXT_REM_REF(m) do {

Re: MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
* John Baldwin <[EMAIL PROTECTED]> [001212 08:39] wrote: > > On 12-Dec-00 Alfred Perlstein wrote: > > grr... > > > > considering this: > > > >#define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) > > > >#define MEXT_REM_REF(m) do {\ > > KASSERT((m)->m_ext.ref_cnt-

RE: MEXT_IS_REF broken.

2000-12-12 Thread John Baldwin
On 12-Dec-00 Alfred Perlstein wrote: > grr... > > considering this: > >#define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) > >#define MEXT_REM_REF(m) do {\ > KASSERT((m)->m_ext.ref_cnt->refcnt > 0, ("m_ext refcnt < 0")); \ > atomic_subtract_long(&((m)->m_ex

auth c409e3fe subscribe freebsd-net johnwu2000@371.net

2000-12-12 Thread John Wu
auth c409e3fe subscribe freebsd-net [EMAIL PROTECTED]

Re: need mbuf generic free() hook

2000-12-12 Thread Julian Elischer
Alfred Perlstein wrote: > > Ok, so I'm trying to rid FreeBSD of the unp_gc() junk in uipc_usrreq.c > I just realized why I'm leaking file descriptors: > > Only mbufs with external storage can have a 'free' function, the > problem is that for the most part when passing a single fd I'm only > usin

need mbuf generic free() hook

2000-12-12 Thread Alfred Perlstein
Ok, so I'm trying to rid FreeBSD of the unp_gc() junk in uipc_usrreq.c I just realized why I'm leaking file descriptors: Only mbufs with external storage can have a 'free' function, the problem is that for the most part when passing a single fd I'm only using a single mbuf to pass my data around,

Re: IP aliases and TCP socket

2000-12-12 Thread Tony Finch
Michael Yeung <[EMAIL PROTECTED]> wrote: > >I noticed IP aliases restrict the alias IP address to be in the same >subnet/network as the primary IP address. Is that a true restriction? No. You configure aliases exactly as you would the primary address on an interface without restriction, except th

Re: MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
* Alfred Perlstein <[EMAIL PROTECTED]> [001212 01:44] wrote: > grr... > > considering this: > > #define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) > > #define MEXT_REM_REF(m) do {\ > KASSERT((m)->m_ext.ref_cnt->refcnt > 0, ("m_ext refcnt < 0")); \ > atomic_

MEXT_IS_REF broken.

2000-12-12 Thread Alfred Perlstein
grr... considering this: #define MEXT_IS_REF(m) ((m)->m_ext.ref_cnt->refcnt > 1) #define MEXT_REM_REF(m) do {\ KASSERT((m)->m_ext.ref_cnt->refcnt > 0, ("m_ext refcnt < 0")); \ atomic_subtract_long(&((m)->m_ext.ref_cnt->refcnt), 1); \ } while(0) this: #defi