Marcelo J coelho wrote:
> Hi!
> 
> 
> Well, for what i understood from your code, and documentation and
> e-mail, i have to create a new protocol.
> 

Yep, a new protocol with respect to RTDM.

> So i started writing raw.c, for posterior inclusion within stack/ipv4
> folder.
> 
> What i started to do was trying to use udp and icmp to try to make a raw
> protocol. I also have something from the kernel itself. My problem is
> that my knowledge in low-level network protocols is a little tiny  :(  
> and i'm trying to understand how these things are implemented.
> 
> So, am i starting it right?
> 

Generally, yes. linux/net/ipv4/raw.c will likely contain some helpful
code for a similar support under RTnet, but not all of that code will be
needed.

Maybe you should start with considering what functionality you most
urgently need from the new IP-SOCK_RAW interface, from the application
point of view. Then have a look at the involved functions under Linux
(e.g. raw_sendmsg for sending) and at similar functions for UDP and
packet sockets under RTnet. Try to understand the pattern, the usual
information flow, and adopt the Linux functions. Ask if details are unclear.

BTW, for the overall picture of RTnet's data flow, there is that ETFA
paper on the documentation page on www.rtnet.org.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to