Hu Chen
|
Re: How to forward traffic between Ethernet and serial port?
|
Hu Chen
02/17/2011 6:00 AM
post83259
|
Re: How to forward traffic between Ethernet and serial port?
Thanks for your suggestion. I successfully test the forwarding function in x86/QNX6.4. The traffic can travel from "en0"
to serial port (ppp) and vice versa.
But it seems PPP is not suitable for my case. Attached please find the topology of my system. PPP need the other peer
also support ppp. But the other peer does not support ppp in my system.
I am wodering for two questions:
1. Is the following possible? I write a network driver for my serial port to provide a virtual interface, say "tiger0",
just like the function of "en0" or "ppp0". Then I forward traffic between "en0" and "tiger0".
If this solution is OK, is it hard to write such a "pseudo" driver. The only thing it needed is to register an interface
in QNX. So it can recv/send traffic to "en0".
Can I refer to the Ethernet driver in offical BSP for my board?
2. io-pkt and QNX6.4.
The document claims that QNX6.4.0 move to io-pkt.
I start "io-pkt" in boot script. The TCP/IP runs smoothly. However, I saw "/dev/io-net" not expected "/dev/io-pkt".
I also have offical QNX6.4.0 BSP for ATMEL AT91SAM926x. In the Ethernet driver, all the prefix is still "io-net-...".
So I am confused.
Thanks
Tiger
|
|
|