io_net and MAC broadcast?

Hi,

I got some (newbie) problems with io-net. I read everything in the
helpviewer but…

I have to put 64 bits from a buffer into an ethernet frame without TCP/IP
and make a MAC broadcast.

From my C file (where I fill in the buffer) I need to give the data from
the buffer to a converter which will add the ethernet header. And then, the
converter gives the ethernet frame to the ehternet driver (devn-rtl.so). I’m
right?

In the C file, how do I tell io_net to call the “tx_down()” function of
the converter? Is there some kind of sockets or something?

In the converter, the bot_type is “en” but what is the top_type, in my case?


It’s a project for the end of my study, and… it’s nearly the end…
Could somebody tell me if I’m in the right way?
If somebody has some other source code examples, that could help me a lot…

Thanks for any help and sorry for my English,

Arnaud Stoumont

We’re looking at putting together some more examples on this sort
of thing but there’s nothing that does exactly this at the moment.

The short answer is you need to plug something in to io-net that
accepts your 64 bits (probably via a message pass), and does
the tx_down() for you.

-seanb

arno stoum <starn@yucom.be> wrote:
: Hi,

: I got some (newbie) problems with io-net. I read everything in the
: helpviewer but…

: I have to put 64 bits from a buffer into an ethernet frame without TCP/IP
: and make a MAC broadcast.

: From my C file (where I fill in the buffer) I need to give the data from
: the buffer to a converter which will add the ethernet header. And then, the
: converter gives the ethernet frame to the ehternet driver (devn-rtl.so). I’m
: right?

: In the C file, how do I tell io_net to call the “tx_down()” function of
: the converter? Is there some kind of sockets or something?

: In the converter, the bot_type is “en” but what is the top_type, in my case?


: It’s a project for the end of my study, and… it’s nearly the end…
: Could somebody tell me if I’m in the right way?
: If somebody has some other source code examples, that could help me a lot…

: Thanks for any help and sorry for my English,

: Arnaud Stoumont

Thanks Sean,

Sorry, but, is it possible to ask you a little longer answer?
The executable file, where the buffer is filed, is it a Down producer?
I just need some examples to understand the philosophy of io_net, not
necessary the exact code that I need…
a converter, a filter, a down producer,…Just to see how they are linked
together…

I’m trying not to use TCP/IP because it takes a long time to pass trought
the protocole stack. Do you think that what I’m trying to do with io_net is
going to be much faster than TCP-IP?

I noticed that it takes 20 microseconds for windows NT to send a UDP packet
and 30 microseconds for QNX (same size of packets,…). Is it because the
QNX TCP/IP stack is less optimised than the windows one?

Thanks again Sean,

Arnaud Stoumont

arno stoum <starn@yucom.be> wrote:
: Thanks Sean,

: Sorry, but, is it possible to ask you a little longer answer?
: The executable file, where the buffer is filed, is it a Down producer?
: I just need some examples to understand the philosophy of io_net, not
: necessary the exact code that I need…
: a converter, a filter, a down producer,…Just to see how they are linked
: together…

The basic philosophy of io-net is outlined in the DDK. It could be a
down producer, or a filter…

: I’m trying not to use TCP/IP because it takes a long time to pass trought
: the protocole stack. Do you think that what I’m trying to do with io_net is
: going to be much faster than TCP-IP?

You should be able to cut out a lot of code so it shouldn’t be any slower.

: I noticed that it takes 20 microseconds for windows NT to send a UDP packet
: and 30 microseconds for QNX (same size of packets,…). Is it because the
: QNX TCP/IP stack is less optimised than the windows one?

I’m not at all familiar with windows.

-seanb