From owner-freebsd-net Tue Dec 11 19:16:57 2001 Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 80AA237B41E for ; Tue, 11 Dec 2001 19:16:52 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fBC3Gob25400; Tue, 11 Dec 2001 19:16:50 -0800 (PST) (envelope-from rizzo) Date: Tue, 11 Dec 2001 19:16:50 -0800 From: Luigi Rizzo To: Mike Tancsa Cc: net@freebsd.org Subject: Re: Polling code at http://info.iet.unipi.it/~luigi/polling/ Message-ID: <20011211191650.I23443@iguana.aciri.org> References: <20011211161454.B23443@iguana.aciri.org> <5.1.0.14.0.20011211220210.046d3a88@192.168.0.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20011211220210.046d3a88@192.168.0.12> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Dec 11, 2001 at 10:07:03PM -0500, Mike Tancsa wrote: > > Hi, it looks like it patches OK, but when compiling, Whoops... missing one chunk for net/if.h, I have updated the web page and the patchfile, or you can just apply the following: cheers luigi Index: if.h =================================================================== RCS file: /home/xorpc/u2/freebsd/src/sys/net/if.h,v retrieving revision 1.58.2.4 diff -u -r1.58.2.4 if.h --- sys/net/if.h 2001/12/08 00:04:15 1.58.2.4 +++ sys/net/if.h 2001/12/04 05:57:40 @@ -130,6 +130,15 @@ #define IFF_LINK2 0x4000 /* per link layer defined bit */ #define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connec tion */ #define IFF_MULTICAST 0x8000 /* supports multicast */ + +/* + * The following flag(s) ought to go in if_flags, but we cannot change + * struct ifnet because of binary compatibility, so we store them in + * if_ipending, which is not used so far. + * If possible, make sure the value is not conflicting with other + * IFF flags, so we have an easier time when we want to merge them. + */ +#define IFF_POLLING 0x10000 /* Interface is in polling mode. */ /* flags set internally only: */ #define IFF_CANTCHANGE \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message