[Top] [All Lists]

Re: creating a netdevice

To: netdev@xxxxxxxxxxx
Subject: Re: creating a netdevice
From: BZ Benny <bennybbz@xxxxxxxx>
Date: Thu, 3 Mar 2005 10:36:21 +0100 (CET)
In-reply-to: <1109799677.1098.198.camel@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
tanks a lot, I think that the only way for creating a
netdevice without being in the kernel space its to use

I have an appli like blueZ which access to the IP
layer and take paket into another network.

My appli run under a PC wich play the role of an
access point for other PCs in my private network.

So, for driving packet from internet to my private 
network and vice versa I use briding utils: brctl

but I have another problem.
It s that my bridge br0 that i create like that
#brctl addbr br0 
#brctl setfd br0 0
#brctl stp br0 off 
#brctl addif br0 eth0
#brctl addif br0 tun0

but if I do not 
#ifconfig eth0
#ifconfig br0
#route add default gw

I can"t access to internet, why does br0 need an IP
adress. I want to not giving him an IP adress and
giving eth0 the IP address of my internet network and
tun0 the IP adress of my private network.


ps: blueZ is an open source bluetooth stack which is
integrated to the 2.6 kernels.

 --- jamal <hadi@xxxxxxxxxx> a écrit : 
> Can you explain why you need to create a net device?
> Linux (and many
> other OSes) typically tie discovery of hardware
> resources to creating a
> network device i.e the kernel creates it for you
> (this is true even when
> the discovery is done post bootup). The only
> exception is things like 
> tun/ethertap as Stephen mentions. Things like
> allocation of ifindices 
> are also under the control of the OS - even when you
> are able to create.
> cheers,
> jamal
> On Wed, 2005-03-02 at 14:26, Stephen Hemminger
> wrote:
> > On Wed, 2 Mar 2005 14:38:28 +0100 (CET)
> > BZ Benny <bennybbz@xxxxxxxx> wrote:
> > 
> > > Hi
> > > 
> > > I want to create a network interface from the
> user
> > > space,
> > > is it possible?
> > 
> > No, you can't create a network interface from user
> space.
> > You probably want to use tun/tap or ethertap
> device.
> > 
> > 


Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur

<Prev in Thread] Current Thread [Next in Thread>