Network Pseudo-device question

Network Pseudo-device question

Post by Georg » Sun, 22 May 2005 00:03:49



Hi all.

I'm trying to develop a virtual network device mapped over a real network
device, something similar to the brigde interface.

I managed to get the packets transmitted. However I don't know how I can
received the packets, that is, redirect them from the real network device
to my new one.

Any clue?

 
 
 

Network Pseudo-device question

Post by phil-news-nos.. » Sun, 22 May 2005 01:35:59



| I'm trying to develop a virtual network device mapped over a real network
| device, something similar to the brigde interface.

Sounds more like VLAN.

| I managed to get the packets transmitted. However I don't know how I can
| received the packets, that is, redirect them from the real network device
| to my new one.
|
| Any clue?

Some kind of logical layering construct as in a VLAN?

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN       | http://linuxhomepage.com/      http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/   http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------

 
 
 

Network Pseudo-device question

Post by Georg » Tue, 24 May 2005 16:09:14



Quote:>| I managed to get the packets transmitted. However I don't know how I
>| can received the packets, that is, redirect them from the real
>| network device to my new one.
>|
>| Any clue?

> Some kind of logical layering construct as in a VLAN?

Yes, more or less that. Any clue?
 
 
 

Network Pseudo-device question

Post by Georg » Tue, 24 May 2005 16:19:44



Quote:>| I managed to get the packets transmitted. However I don't know how I
>| can received the packets, that is, redirect them from the real
>| network device to my new one.
>|
>| Any clue?

> Some kind of logical layering construct as in a VLAN?

Yes, more or less that. However I don't want to define a new packet type.
It is more like a brigde. Any clue?
 
 
 

Network Pseudo-device question

Post by phil-news-nos.. » Tue, 24 May 2005 22:48:25




|
|>| I managed to get the packets transmitted. However I don't know how I
|>| can received the packets, that is, redirect them from the real
|>| network device to my new one.
|>|
|>| Any clue?
|>
|> Some kind of logical layering construct as in a VLAN?
|>
|
| Yes, more or less that. Any clue?

I remember seeing a driver a while back that implemented some compatibility
with Cisco's VLAN.  Maybe that is still around.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN       | http://linuxhomepage.com/      http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/   http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------

 
 
 

Network Pseudo-device question

Post by Tauno Voipi » Wed, 25 May 2005 03:25:07




>>| I managed to get the packets transmitted. However I don't know how I
>>| can received the packets, that is, redirect them from the real
>>| network device to my new one.
>>|
>>| Any clue?

>>Some kind of logical layering construct as in a VLAN?

> Yes, more or less that. However I don't want to define a new packet type.
> It is more like a brigde. Any clue?

If you can route the interesting packets to a separate interface,
a TUN or TAP driver could be the solution.

Both are kind of adapter pieces between a network interface
and a character device. The difference is that a TUN driver
works at the IP layer and a TAP driver works at the data link
layer (e.g. Ethernet).

HTH

--

Tauno Voipio
tauno voipio (at) iki fi

 
 
 

1. STREAMS message from pseudo-device to pseudo-device

Hi everybody,

I have a kernel device driver programming related question for Solaris
2.6.

We have a packet classifier which sits between the IP pseudo-driver
and the network interface driver.

We need to send an unacknowledged message from the IP driver to our
classifier so as to pass on connection setup information. The classifier
is implemented as a pseudo device driver. We have plumbed the classifier
beneath IP, and now need a way to send M_PROTO messages from the IP driver
to the classifier. We have saved up the address of the device write queue
of our classifier in a global variable, but a putnext of a message from IP
onto the classifier's device write queue causes the machine to crash.

(1) In short, is there a way for M_PROTO messages to be transmitted from
IP to our classifier beneath it.

(2) Is there a way to set up a STREAM between two kernel pseudo device
drivers?

Thanks a bunch in advance.

Regards,
ravi

2. How to enumerate IP routing table entries from a program?

3. May 23 10:50:05 mwsbit04 pseudo: [ID 129642 kern.info] pseudo-device: devinfo0

4. pieter krul would you mind explaining this?

5. undefined pseudo-device abcd

6. Stupid Question probably

7. pseudo-device error in messages

8. PPP connection slows the sistem....

9. HELP: configuring tun0 pseudo-device

10. Pseudo-Device Driver in Solaris 2.x

11. Pseudo-device Qns

12. Help developing a pseudo-device driver ?

13. SUMMARY: Is this a job for a pseudo-device driver?