Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 23:42:51 -0700
From:      "Jacob S. Barrett" <jbarrett@amduat.net>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        freebsd-ipfw <freebsd-ipfw@freebsd.org>
Subject:   Re: MAC Layer Bandwidth Limiting
Message-ID:  <3D86CEEB.2010100@amduat.net>
References:  <3D864865.2030607@amduat.net> <3D86C25C.50104@amduat.net> <20020916230259.A51851@iguana.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote:
>>It would be nice to be able to specify a MAC mask on the pipes so I 
>>don't have to create 2 for each client.
> 
> yes... in fact, the implementation of masks should be slightly revised
> so one can use more or less arbitrary fields instead of just the
> ip addresses. Next feature i guess...

I would love for this to be a new feature soon.

>>Also, digging through the source reveals no way to get and zero the 
>>counts in an atomic fashion.  That would be a really nice feature to 
> 
> this is close to impossible to get right, because the success of reading
> the counts depends on the size of the buffer passed to the getsockopt().
> Given that one can compute the deltas in userland, i think 
> the feature is not very useful anyways.

Should I just take snapshots every so often and calculate deltas from 
that.  I also need to be aware of counter roll over events.  What is the 
max value of the byte counter in the rules and pipes stats?

-- 
Jacob S. Barrett
jbarrett@amduat.net
www.amduat.net

"I don't suffer from insanity, I enjoy every minute of it."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D86CEEB.2010100>