On 05/26/2010 07:29 PM, navanee than wrote: > Hi All, > > I am using linux-2.6.31 kernel and a slightly modified version of mcp251x > driver. > If I set the socket options using CAN_RAW_RECV_OWN_MSGS, to receive the sent > frames, it is not receiving back.
This means that you want to receive the message sent on the *same* socket as well? For clarification, please read section 4.1.3 and 4.1.3: http://lxr.linux.no/linux+*/Documentation/networking/can.txt#L448 > I enabled local echo (IFF_ECHO), in my code. > > I don't know why it is not working. > I believe that it is being taken care by the low level CAN subsystem. > > I saw that when setsockopt(CAN_RAW_RECV_OWN_MSGS) is called, recv_own_msgs > member of raw_sock is updated. > But, is there any way to get this information in my driver. So, that I can > support the local loopback. Local loopback is supported by default. You can verify that by running "candump any,0:0,#FFFFFFFF". Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
