]> git.baikalelectronics.ru Git - kernel.git/commit
can: gw: add a per rule limitation of frame hops
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 26 Aug 2013 13:05:36 +0000 (15:05 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 29 Aug 2013 20:58:24 +0000 (22:58 +0200)
commit2bff9c8389c18041b0b0e2af6da87e593239a3b3
tree891c2d57e8b2424b72e07815b7f203317257c93e
parentc85427dfab1287c4095c4107f5d96b9ba14242e8
can: gw: add a per rule limitation of frame hops

Usually the received CAN frames can be processed/routed as much as 'max_hops'
times (which is given at module load time of the can-gw module).
Introduce a new configuration option to reduce the number of possible hops
for a specific gateway rule to a value smaller then max_hops.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/uapi/linux/can/gw.h
net/can/gw.c