Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2005 09:57:54 +0100
From:      n0g0013 <ttw@cobbled.net>
To:        rashmi ns <nsrashmi@gmail.com>
Cc:        freebsd-hackers@freebsd.org, bugi@lists.redbrick.dcu.ie
Subject:   Re: [BUGI] Re: Porting from linux to freebsd help needed
Message-ID:  <20050913085754.GB2948@eyore.cobbled.net>
In-Reply-To: <9f99931605091221463addc8a4@mail.gmail.com>
References:  <9f99931605091200085048847a@mail.gmail.com> <9f99931605091221463addc8a4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13.09-10:16, rashmi ns wrote:
[ ... ]
> I wanted to add a psuedo network driver can any one tell me what else needs 
> to be done here to provide a simple psuedo interface 

not to repeat what david said but look at

	/usr/src/sys/net/if_disc.c

for information.  the code supplied is only enough to handle the
module loading -- nothing to do with network interfaces (except that
they may also be modules).  most of the magic is handled by the
macro definitions and kernel callbacks.

if you're really stuck try posting the full source.

if you are looking to implement a pseudo device you may wish to look
at netgraph -- i have no experience of it but rumour suggests it is
an effective way to stack protocol handlers, drivers and other
network magic.

-- 
        t
 t
                 w



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