]> 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)
commitc30595446f31bb7cd993580146e0fd7639435032
tree891c2d57e8b2424b72e07815b7f203317257c93e
parentee362fbb1f664e80a7f85a0d39b671f55ee2a7b8
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