Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 1999 12:25:04 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Charudatta Brahme <charooo@trishul.icil.co.in>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Network Driver Programming
Message-ID:  <Pine.BSF.4.10.9906221223550.99084-100000@resnet.uoregon.edu>
In-Reply-To: <376F682B.6A4283AE@trishul.icil.co.in>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Jun 1999, Charudatta Brahme wrote:

> I am making some feeble attempts in writing a network driver, a sort of
> virtual host interface (I know about ifconfig alias - but this needs to
> be done at the driver level).
> I can't find enough information on the ifnet structure - mainly how I
> can force the
> interface to read all packets coming in.

Set promiscuous mode on the appropriate interface.  It sounds like you
really want to use bpf.

> Where am I going wrong? Is there any other way of doing this?
> ifconfig alias won't solve my problem as this virtual host has to
> represent aroun 1024 hosts.

Could you honestly host 1024 sites on one Ethernet without running out of
network bandwidth first?  Or bottlenecking on all the I/O?

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



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.4.10.9906221223550.99084-100000>