Thread (7 messages) 7 messages, 3 authors, 2012-08-24

Re: loopback problem with BCM, RAW using, Daniele Venzano

From: Kurt Van Dijck <hidden>
Date: 2012-08-24 04:47:41

On Thu, Aug 23, 2012 at 08:35:45PM +0200, Oliver Hartkopp wrote:
On 22.08.2012 10:57, Kurt Van Dijck wrote:
quoted
Oliver,

I did not follow this thread in depth.

The patch looks minimal, but I doubt its usefullness.
In a proper designed CAN system, each node uses distinct CAN-ids.
Therefore, filtering out local traffic can always be accomplished
with the current filtering (RTR frames are an exception, but are
irrelevant here).

userspace can test flags (MSG_DONTROUTE) to decide if a received
frame is from <localhost> or remote.
So I don't see the problem that you're addressing with this patch.

Hello Kurt,

this was a quick shot.

After thinking a bit more on this idea, this sockopt is something like an
additional filter. But then i needs to have two bits:

- receive rx frames (from the outside)
- receive tx frames (from the local host)

Default is to receive both types of frames ...

Btw. i don't know if this additional sockopt makes it even more complicated
for users ...
IMO, things get complicated.
Example: what should I get when
CAN_RAW_RECV_OWN_MSGS is set & CAN_RAW_RECV_HOST_MSGS is cleared?
Regards,
Oliver

ps. the CAN FD capable 'candump' now prints the RX/TX info on demand too.
really nice.

-- 
Kurt Van Dijck
GRAMMER EiA ELECTRONICS
http://www.eia.be
kurt.van.dijck@eia.be
+32-38708534
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help