From owner-cvs-sys Mon Jan 12 18:57:30 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA17234 for cvs-sys-outgoing; Mon, 12 Jan 1998 18:57:30 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA17091; Mon, 12 Jan 1998 18:56:28 -0800 (PST) (envelope-from wollman@FreeBSD.org) From: Garrett Wollman Received: (from wollman@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id SAA22814; Mon, 12 Jan 1998 18:56:24 -0800 (PST) Date: Mon, 12 Jan 1998 18:56:24 -0800 (PST) Message-Id: <199801130256.SAA22814@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/net if.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 1998/01/12 18:56:23 PST Modified files: sys/net if.h Log: Add a macro to accurately calculate the length of a struct ifreq when it contains an address. This can replace all the myriad (wrong) ways in which this task is performed in the current system. As an added bonus, since it's a macro, then third-party software vendors have an easy way to tell whether it's there or not. (This will become necessary when sizeof(struct sockaddr) is increaased, and also when additional fields are added to struct ifreq.) Revision Changes Path 1.48 +6 -1 src/sys/net/if.h