Hi all,

I want to port a non realtime program to a rtnet based one.
It is used to communicate with an embedded device.
The communication is done via raw IP, i.e. IP is used for communication (and 
routing), however the protocol byte within the IP header is 255 and the data is 
directly padded after the IP header.
The non realtime application uses the socket call
        sock = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
for this.
A data structure that contains the complete IP header directly followed by the 
user data
is sent via sendto to the embedded device.

How can I do something similar with rtnet?
I want to open a socket using IP as routing protocol but not UDP but raw IP?
I did not see in the source code that IPPROTO_RAW is supported by rtnet.

Thanks for any help on this.

Regards

Mathias


-- 
Mathias Koehrer
[EMAIL PROTECTED]


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur  34,95 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to