From owner-freebsd-ipfw Mon Sep 16 23:44:19 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C36C37B400 for ; Mon, 16 Sep 2002 23:44:18 -0700 (PDT) Received: from aker.amduat.net (aker.amduat.net [206.124.149.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A22E43E65 for ; Mon, 16 Sep 2002 23:44:16 -0700 (PDT) (envelope-from jbarrett@amduat.net) Received: from amduat.net (trilluser@osiris.amduat.net [10.0.0.128] (may be forged)) (authenticated bits=0) by aker.amduat.net (8.12.5/8.12.5) with ESMTP id g8H6iFKr001069 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 16 Sep 2002 23:44:15 -0700 (PDT) (envelope-from jbarrett@amduat.net) Message-ID: <3D86CEEB.2010100@amduat.net> Date: Mon, 16 Sep 2002 23:42:51 -0700 From: "Jacob S. Barrett" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Luigi Rizzo Cc: freebsd-ipfw Subject: Re: MAC Layer Bandwidth Limiting References: <3D864865.2030607@amduat.net> <3D86C25C.50104@amduat.net> <20020916230259.A51851@iguana.icir.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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