Re: [RTnet-developers] Documentation request
Brought to you by:
bet-frogger,
kiszka
|
From: Jan K. <jan...@we...> - 2006-03-24 16:58:49
|
Marcelo J coelho wrote: > Hi! >=20 >=20 > Well, for what i understood from your code, and documentation and > e-mail, i have to create a new protocol. >=20 Yep, a new protocol with respect to RTDM. > So i started writing raw.c, for posterior inclusion within stack/ipv4 > folder. >=20 > What i started to do was trying to use udp and icmp to try to make a ra= w > 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. >=20 > So, am i starting it right? >=20 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 uncle= ar. BTW, for the overall picture of RTnet's data flow, there is that ETFA paper on the documentation page on www.rtnet.org. Jan |