]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
cangw: fix inverse filter display when printing the configured rules
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 29 Jan 2013 19:50:46 +0000 (20:50 +0100)
committerOliver Hartkopp <socketcan@hartkopp.net>
Tue, 29 Jan 2013 19:50:46 +0000 (20:50 +0100)
commit29c3e344a5f2822854a1747ee5f2cdf887db13c7
treeb1821d9af0a2c7b551bf7d0fec5dd8cbdddedea2
parent9dad9f7354f069e5219172a5b0e30219eb616d18
cangw: fix inverse filter display when printing the configured rules

A configured inverse filter e.g.

cangw -A -s can0 -d can1 -e -f 123~7FF

has been displayed with 'cangw -L' like this:

cangw -A -s can0 -d can1 -e -f 20000123:7FF # 0 handled 0 dropped 0 deleted

While 0x20000000 was the value of CAN_INV_FILTER.

This patch fixes the output to the expected display:

cangw -A -s can0 -d can1 -e -f 123~7FF # 0 handled 0 dropped 0 deleted

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
cangw.c