Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 1999 09:09:17 -0500 (EST)
From:      Alfred Perlstein <bright@rush.net>
To:        Johan Kruger <jk@nanoteq.co.za>
Cc:        questions@FreeBSD.ORG
Subject:   Re: xl driver for 3Com
Message-ID:  <Pine.BSF.3.96.990528090239.9491I-100000@cygnus.rush.net>
In-Reply-To: <374E9307.8B2B2272@nanoteq.co.za>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990528090239.9491I-100000>