Date: Thu, 12 Aug 1999 03:25:28 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: green@FreeBSD.ORG (Brian F. Feldman) Cc: luigi@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/netinet ip_fw.h ip_fw.c Message-ID: <199908120125.DAA03481@labinfo.iet.unipi.it> In-Reply-To: <Pine.BSF.4.10.9908112343420.81521-100000@janus.syracuse.net> from "Brian F. Feldman" at Aug 11, 99 11:44:16 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > When, at some point, someone decides to change struct ip_fw, please > > add a length field and a version number at the beginning, so userland > > apps can keep working even if they are out of sync with the kernel. > > How would you figure that apps would keep working when they're not in > sync with the kernel, even with ip_fw struct versioning? A newer ipfw should know how to process old struct formats, and in the worst case, an old ipfw can at least say "sorry your kernel is too new for me to work on it". I assume one shouldn't need to bump the version number if the changes are limited to adding fields (such as the uid/gid changes or the probabilistic match code). (the length field is needed to make get/setsockopt() exchange data -- as it is now a length mismatch will confuse the application.) cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) http://www.iet.unipi.it/~luigi/ngc99/ ==== First International Workshop on Networked Group Communication ==== -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908120125.DAA03481>