Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 23:42:51 -0700
From:      "Jacob S. Barrett" <>
To:        Luigi Rizzo <>
Cc:        freebsd-ipfw <>
Subject:   Re: MAC Layer Bandwidth Limiting
Message-ID:  <>
References:  <> <> <>

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

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

To Unsubscribe: send mail to
with "unsubscribe freebsd-ipfw" in the body of the message

Want to link to this message? Use this URL: <>