Michele Damoiseau(deleted)
|
Re: Raw ethernet packet using bpf0 and bpf1
|
Michele Damoiseau(deleted)
03/04/2013 5:38 AM
post99660
|
Re: Raw ethernet packet using bpf0 and bpf1
Actually, I was launching io-pkt via enum utilities.
I have tried after that manually, but my mistake was not to define pci index
of each interface...
Thanks for that information. Now, I could have now /net1/dev/bpf0 and
/net2/dev/bpf0!
But a last question, how can I launch netmanager after that, in order to
define IP address on each interface?
How to pass the prefix to all the network applications?
Many thanks
Regards
Michele
-----Message d'origine-----
From: Gervais Mulongoy
Sent: Friday, March 01, 2013 2:39 PM
To: general-networking@community.qnx.com
Subject: Re: Raw ethernet packet using bpf0 and bpf1
I just tried the following:
1) io-pkt-v4 -dpcnet -i1 -ptcpip prefix=/net1
2) io-pkt-v4 -de1000 -i2 -ptcpip prefix=/net2
Each instance of Io-pkt lives at its own prefix. Note that this means
that all network apps will need to be told which prefix to use or they
will complain that they can't find the network stack at the default
prefix of /. Further note, you can configure one instance to live at
the default location, just omit the "-ptcpip prefx=.*" bit.
Following the above steps, I now have two distinct sets of bpf interfaces.
/net1/dev/bpf*
/net2/dev/bpf*
If I want to use the first bpf interface, I specify the prefix:
SOCK=/net1 myNetApp
If I want to use the second bpf interface, I specify the prefix:
SOCK=/net2 myNetApp
How are you launching both instances of io-pkt?
_______________________________________________
General
http://community.qnx.com/sf/go/post99629
To cancel your subscription to this discussion, please e-mail
general-networking-unsubscribe@community.qnx.com
|
|
|