From owner-freebsd-questions Fri May 28 6:50:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id BAB9214BE9 for ; Fri, 28 May 1999 06:50:18 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id JAA06081; Fri, 28 May 1999 09:09:18 -0500 (EST) Date: Fri, 28 May 1999 09:09:17 -0500 (EST) From: Alfred Perlstein To: Johan Kruger Cc: questions@FreeBSD.ORG Subject: Re: xl driver for 3Com In-Reply-To: <374E9307.8B2B2272@nanoteq.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 May 1999, Johan Kruger wrote: > Hi there hackers. > I need to hack the driver file if_xl.c to do the following : > -> Detect the first 3Com card normally. > -> All cards hereafter must only be able to receive packets, not > transmit them. > Does anybody know how i can achieve this by changes in the file if_xl.c that would be icky, if you enable ipfw (packet filtering) you can easily do this: ipfw add 100 allow all from any to any via xl0 ipfw add 200 deny all from any to any xmit any you'll need to look at /usr/src/sys/i386/conf/LINT to enable packet filtering: options IPFIREWALL options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default In the future please don't cross post. (post to multiple lists) good luck, -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message