From owner-freebsd-ipfw Sat Jun 15 14:45:39 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by hub.freebsd.org (Postfix) with SMTP id 3A2CC37B40E for ; Sat, 15 Jun 2002 14:45:33 -0700 (PDT) Received: (qmail 6240 invoked by uid 1005); 15 Jun 2002 21:43:17 -0000 Received: from misho@interbgc.com by keeper.interbgc.com with qmail-scanner-1.01 (uvscan: v4.0.50/v4206. . Clean. Processed in 0.468 secs); 15 Jun 2002 21:43:17 -0000 Received: from unknown (HELO misho) (217.9.226.238) by mail.interbgc.com with SMTP; 15 Jun 2002 21:43:17 -0000 Message-ID: <000d01c214b5$54509b00$eee209d9@interbgc.com> Reply-To: "Mihail Balikov" From: "Mihail Balikov" To: "Luigi Rizzo" Cc: References: <20020608201909.A41807@iguana.icir.org> <001601c21451$ce2f2d60$eee209d9@interbgc.com> <20020615112018.A15684@iguana.icir.org> Subject: Re: New ipfw code available Date: Sun, 16 Jun 2002 00:40:55 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 something like this: sys/netinet/ip_fw.c: static u_int64_t seq_num = 0; SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, seq_num, CTLFLAG_RW, &seq_num, 0, "Sequence number of changes"); static int ip_fw_ctl(struct sockopt *sopt) { [...] case IP_FW_FLUSH: seq_num++; [...] case IP_FW_ADD: seq_num++; [...] case IP_FW_DEL: seq_num++; .... } it's should be useful to have similar counter for dummynet. regards, m. ----- Original Message ----- From: "Luigi Rizzo" To: "Mihail Balikov" Cc: Sent: Saturday, June 15, 2002 9:20 PM Subject: Re: New ipfw code available > On Sat, Jun 15, 2002 at 12:48:30PM +0300, Mihail Balikov wrote: > > how about adding simple checksum of rules , something like incrementing > > counter on every > > IP_FW_FLUSH, IP_FW_ADD, IP_FW_DEL > > what do you mean ? > > luigi > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ipfw" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message