tvfbfdb uyvy wrote:
>> tvfbfdb uyvy wrote:
>>> Hello,
>>> is there an RTcap API documentation available?
>> Sounds like there is still a bit misconception persisting: The packets
>> captured (and timestamped!) by RTcap will pop up as normal frames on
>> that pseudo NICs under Linux. So you are free to
>>
>>  a) use standard capturing tools
>>  b) develop against libpcap
>>  c) attach directly to that pseudo NIC under Linux
>>
>> Otherwise, please explain what kind of special feature you want to have
>> that is not available through the interfaces listed above.
> 
>> Jan
> 
> 
> What I simply meant with my question was whether where is a description 
> available of the functions defined in rtcap/rtcap.c

Ok, that's something else (at least not an API). To give you a rough
overview on rtcap's internals:

 o rtcap_rx_hook is installed to grab incoming packets. They are added
   to an internal queue and a Linux soft-IRQ is raised to handle them in
   Linux context later. If there is no room in the queue (i.e. no more
   buffer free), the packet is dropped. This avoids that packet
   capturing can starve potential real-time application running in
   parallel. Typically nothing to worry about (nevertheless tunable via
   the rtcap_rtskbs module parameter).

 o rtcap_xmit_hook does the same for outgoing packets.

 o rtcap_loopback_xmit_hook handles the special case that packets over
   loopback devices do not come along the hooks above.

 o rtcap_signal_handler is the said handler in Linux context to copy the
   real-time packet into a Linux skb and deliver the latter via the
   related tap networking device.

The rest is setup/cleanup stuff.

If you want to dig deeper into this, I can only recommend the lxr
cross-reference that is linked on the RTnet homepage.

> But thanks for clearing that out too!
> 

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to