Date: Sun, 16 Jun 2002 22:56:06 +0300 From: "Mihail Balikov" <misho@interbgc.com> To: "Adam Migus" <adam@migus.org> Cc: <ipfw@freebsd.org> Subject: Re: New ipfw code available Message-ID: <001901c2156f$da0c7d80$eee209d9@interbgc.com> References: <HGEBLKNLFOJKKBGJBAKDEEDJCAAA.adam@migus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Why would this be useful? keep tracking of changes in ipfw rules > Why would you make the sysctl CTLFLAG_RW? Why > would you use 64 bits? sorry , i have made copy&paste of other code, should be read-only ----- Original Message ----- From: "Adam Migus" <adam@migus.org> To: "Mihail Balikov" <misho@interbgc.com> Sent: Sunday, June 16, 2002 10:41 PM Subject: RE: New ipfw code available > Dude, > Why would this be useful? Why would you make the sysctl CTLFLAG_RW? Why > would you use 64 bits? Why would you use the same variable (making it > somewhat meaningless anyway)? > > > > -----Original Message----- > > From: owner-freebsd-ipfw@FreeBSD.ORG > > [mailto:owner-freebsd-ipfw@FreeBSD.ORG]On Behalf Of Mihail Balikov > > Sent: Saturday, June 15, 2002 5:41 PM > > To: Luigi Rizzo > > Cc: ipfw@FreeBSD.ORG > > Subject: Re: New ipfw code available > > > > > > 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" <rizzo@icir.org> > > To: "Mihail Balikov" <misho@interbgc.com> > > Cc: <ipfw@freebsd.org> > > 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 > > > > 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?001901c2156f$da0c7d80$eee209d9>