[EMAIL PROTECTED] wrote:
> Hi All,
> 
> I am a newbie in RTNET and i have questions. I have to program a specific
> MAC protocol for interacting, over an ethernet bus, with hardware specific
> distributed units that implement this protocol. Since these units just
> have a MAC and an Application Layers, i have to reproduce this network
> stack on the PC side, that's why i don't want to use any IP layer on top
> of my MAC layer. The MAC Layer will be included in a real-time task
> running in kernel space (mandatory in the control architecture i am
> developing).

And the application layer? Will it be real-time as well, or standard Linux?

> 
> To do the job, i have to deal with Ethernet packet capturing and sending,
> in addition of IRQ handling. What i need is a kind of HAL that provide me
> an abstraction of Ethernet drivers and a library that provides me all
> necessary functions (IRQ handling, packet capturing and sending). In fact,
> what I need is something quite like the well-known libpcap library.
> 
> Optimally, I search for a way to "easily" plug RTnet low-level layer with
> libpcap library. So my questions are :
> - Can i use libpacap directly in kernel mode ?

libpcap is a user space library, it's not designed for in-kernel usage.

> - If no, can i use, by any way, libpcap in hard real-time RTAI tasks in
> combination with RTNET ? If yes, How should i proceed ?
> - If no, does RTnet provide functions like the ones provided by libpcap ?
> If yes, where could I find documentation/examples on these functions ?

RTnet's RTcap layer provides the low-end interface for libpcap to sniff
also on with real-time interfaces. But in this case the capturing
front-end remains non-RT. Would this be OK for you?

I still have problems understanding your scenario, thus I'm careful with
pointing at certain design paths. It basically depends on

 a) the real-time requirements of your components
 b) the programming model (single application/multiple apps, user/kernel
    space)

Jan

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to