Thread (24 messages) 24 messages, 5 authors, 2007-06-04

Re: [patch 5/7] CAN: Add virtual CAN netdevice driver

From: Patrick McHardy <hidden>
Date: 2007-06-04 11:56:40

Oliver Hartkopp wrote:
1. The needed skb->sk is preserved for the rx path (the way 'up').

I was thinking about this, don't CAN frames include the identity
of the sender? That would be the easiest way to determine whether
the frame needs to be delivered.
2. The loopback indication is done by using the unused skb->protocol in
the tx path.

Actually its not unused, it needs to be set on TX frames once the
packet leaves the protocol specific code. Its used for example by
packet sockets (sk_run_filter), qdisc classification, neighbour
resolution, gso segmentation, ...

I don't get why you can't directly check the socket option on the
TX path.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help