]> rtime.felk.cvut.cz Git - can-utils.git/commit
cangw: add an option for the per rule limitation of frame hops
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 4 Sep 2013 18:30:34 +0000 (20:30 +0200)
committerOliver Hartkopp <socketcan@hartkopp.net>
Wed, 4 Sep 2013 18:30:34 +0000 (20:30 +0200)
commitad7f44095ac301ae85f1c3e406a868c5ac664abe
treee281bb383a8c915480ac18b03169f9ea6caeb79d
parent93ef3b1d814ad4fc2a71aeb1fcce1cfde307e172
cangw: add an option for the 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 ( -l <hops> ) to reduce the number of
possible hops for a specific gateway rule to a value smaller then max_hops.

Mainline upstream commit:

http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=391ac1282dd7ff1cb8245cccc5262e8e4173edc4

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
cangw.c
include/socketcan/can/gw.h