linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Expose filtered CAN interface to processes
@ 2016-01-29 19:06 Osborne, Paul
  2016-01-29 20:05 ` Oliver Hartkopp
  0 siblings, 1 reply; 5+ messages in thread
From: Osborne, Paul @ 2016-01-29 19:06 UTC (permalink / raw)
  To: linux-can@vger.kernel.org

Hello,

I am currently trying to figure out the best way to present a couple
CAN devices to a process in such a way that will allow for filtering
rules for sends on the exposed interface to be filtered according to
some set of rules.

cangw works great for the basic parts of this use case.  That is, I
have traffic coming from vcan<x> to can<x> after filtering and it
works as expected.  The problem I have now is that for the user
process can see both CAN buses.  I would only like them to see the
vcan devices.

Is there a solution for this available in the kernel today or would
this only work with network namespaces (which are not supported for
can right now)?

More accurately, it appears that network namespaces work on CAN
interfaces but there does not appear to be the required support
present for bridging vcan devices as can be done with veth devices
(i.e. ip link add veth0 type veth peer name veth1).

I am new to network namespaces; Am I missing something?  Is this a
real use case for network namespace support?  It sounded like there
was uncertainty on this point with the RFC that was posted back in
September by Andri: http://comments.gmane.org/gmane.linux.can/8589.

Thanks,
Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-01 10:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-29 19:06 Expose filtered CAN interface to processes Osborne, Paul
2016-01-29 20:05 ` Oliver Hartkopp
2016-01-29 21:53   ` Osborne, Paul
2016-01-30 10:24     ` Oliver Hartkopp
2016-02-01 10:13     ` Andri Yngvason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).