]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit391ac1282dd7ff1cb8245cccc5262e8e4173edc4
tree891c2d57e8b2424b72e07815b7f203317257c93e
parent1149108e2fbf98899447d4567901bf07825ee576
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