Matthias Fuchs wrote: > > During testing I noticed a problem with loopback behavior. It's the same > problem > I ran into a while ago with 2.6.30: I always receive sent > frames on the same socket. The sockets behave as if CAN_RAW_RECV_OWN_MSGS is > enabled. > > Wolfgang, did you run into this issue when you did the sysfs 2.6.18 backport?
Hi Matthias, to make sure the CAN_RAW_RECV_OWN_MSGS is working properly, the pointer to the sock structure (sk) has to be set into the socketbuffer (skb) of the receiving skb. So there is code some that makes skb->sk = srcsk to restore the sk in the receiving skbuff. skb->sk is usually killed by skb_orphan(), so skb->sk = srcsk is needed here. > Any ideas where to dig? Please check in can_send() and can_rcv() if there are the same pointer values in skb->sk . E.g. with printk() of the pointer values. Regards, Oliver _______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
