On 10/14/2010 11:44 AM, Alexander Stein wrote: > On Thursday 14 October 2010, 11:36:06 Wolfgang Grandegger wrote: >> On 10/14/2010 11:26 AM, Alexander Stein wrote: >>> Hello, >>> default socket options (CAN_RAW_LOOPBACK = 1, CAN_RAW_RECV_OWN_MSGS = 0), >>> I also receive my own frames on the same socket. setting >>> CAN_RAW_RECV_OWN_MSGS to 1 doesn't change anything. But if I set >>> CAN_RAW_LOOPBACK to 0, I don't get any frame I sent. I guess the latter >>> is intended. >> >> Yes, it's explained in section 3.2, 4.1.3 and 4.1.4 of: >> >> http://lxr.linux.no/#linux+v2.6.35.7/Documentation/networking/can.txt > > I read those sections several times, but I doubt I get it all correctly. To > my > understanding CAN_RAW_LOOPBACK is the option to enable reception of sent > frames on _different_ sockets of the same device. And CAN_RAW_RECV_OWN_MSGS > is > the option to enable reception of sent frames on the _same_ socket of the > same > device.
Sounds good. > If I'm right until here, why do I get my own sent messages on one socket, if > CAN_RAW_LOOPBACK = 1 and CAN_RAW_RECV_OWN_MSGS = 0 is set? You mean you get the message on the *same* socket you use for sending? Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
