Bruno Carlus wrote: > Jan Kiszka a écrit : >> Bruno Carlus wrote: >>> Hello ! >>> >>> I've got a RTnet network (two xenomai machines actually...) running >>> and would like to run a PTP (time synchronizing) software through it. >>> [Source available at http://ptpd.sourceforge.net/] >>> >>> The software compiles ok with xenomai/posix wrapping options but >>> cannot run and exits within the following code: >>> >>> if(ioctl(netPath->eventSock, SIOCGIFADDR, &device[i]) < 0) >>> { >>> PERROR("failed to get ip address"); >>> return 0; >>> } >>> >>> (don't know if the information will be enough ...) >> SIOCGIFADDR is not implemented in the core. You could either switch >> ptpd to use SIOCGIFCONF or add the few required lines to RTnet. This >> would be the place for them: >> >> http://www.rts.uni-hannover.de/rtnet/lxr/source/stack/socket.c#225 >>> The network itself is running ok with rtping or other pieces of code. >>> So I wonder if my compilation method is really the good one or if >>> there are other linking to be done with the ioctl function ? >>> >>> Other question: what is the status of the RTnet multicast support >>> core and nic drivers? >> Basically, we are lacking an efficient but still RT-capable >> rtskb_clone for true multicast support. We do have some rtskb_clone >> already for ETH_P_ALL support, but it simply copies the payload which >> does no scale well and does not allow to isolate the users from each >> other. >> >> For sure, one could bake a single user (==single receiver) approach >> for now. There used to be some patches for this (with 8139 driver >> support), just search the archive. They were never merged as the >> needed some refactorings first. >> >> Jan >> > > Thank you Jan ! > > I patched the socket.c file to implement the SIOCGIFADDR option.
I'm always open to review and merge patches... :-> > But I'm now of course stopped by the multicast initialization. > I couldn't find so far in any messages in the archive the Amine's patches. > Does anyone know where I could find them? Check gmane.org e.g. I'm subscribed to its news server, and typing in "multicast" made TB show me the thread "Patch for multicast support for RTnet" within a second. Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users