Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2001 19:16:50 -0800
From:      Luigi Rizzo <rizzo@aciri.org>
To:        Mike Tancsa <mike@sentex.net>
Cc:        net@freebsd.org
Subject:   Re: Polling code at http://info.iet.unipi.it/~luigi/polling/
Message-ID:  <20011211191650.I23443@iguana.aciri.org>
In-Reply-To: <5.1.0.14.0.20011211220210.046d3a88@192.168.0.12>
References:  <20011211161454.B23443@iguana.aciri.org> <5.1.0.14.0.20011211220210.046d3a88@192.168.0.12>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011211191650.I23443>