From: Oliver Hartkopp Date: Tue, 19 Oct 2010 09:32:04 +0000 (+0000) Subject: can-raw: add msg_flags to distinguish local traffic X-Git-Tag: v2.6.37-rc1~147^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e55659ce6ddb5247cee0b1f720d77a799902b85;p=pandora-kernel.git can-raw: add msg_flags to distinguish local traffic CAN has no addressing scheme. It is currently impossible for userspace to tell is a received CAN frame comes from another process on the local host, or from a remote CAN device. This patch add support for userspace applications to distinguish between 'own', 'local' and 'remote' CAN traffic. The distinction is made by returning flags in msg->msg_flags in the call to recvmsg(). The added documentation explains the introduced flags. Signed-off-by: Kurt Van Dijck Signed-off-by: Oliver Hartkopp Signed-off-by: David S. Miller --- Reading git-diff-tree failed