.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH CANGW "1" "March 2018" "cangw 2018.02.0-1~bpo9+1" "User Commands" .SH NAME cangw \- manual page for cangw 2018.02.0-1~bpo9+1 .SH SYNOPSIS .B cangw [\fI\,options\/\fR] .SH DESCRIPTION cangw \- manage PF_CAN netlink gateway. .SS "Commands:" .TP \fB\-A\fR (add a new rule) .TP \fB\-D\fR (delete a rule) .TP \fB\-F\fR (flush / delete all rules) .TP \fB\-L\fR (list all rules) .SS "Mandatory:" .TP \fB\-s\fR (source netdevice) .TP \fB\-d\fR (destination netdevice) .SH OPTIONS .TP \fB\-t\fR (preserve src_dev rx timestamp) .TP \fB\-e\fR (echo sent frames \- recommended on vcanx) .TP \fB\-i\fR (allow to route to incoming interface) .TP \fB\-u\fR (user defined modification identifier) .TP \fB\-l\fR (limit the number of frame hops / routings) .TP \fB\-f\fR (set CAN filter) .TP \fB\-m\fR (set frame modifications) .TP \fB\-x\fR ::: (XOR checksum) .TP \fB\-c\fR ::::: (CRC8 cs) .TP \fB\-p\fR :[] (CRC8 checksum profile & parameters) .PP Values are given and expected in hexadecimal values. Leading 0s can be omitted. .SS " is a CAN identifier filter:" .TP : (matches when & mask == can_id & mask) .TP ~ (matches when & mask != can_id & mask) .PP is a CAN frame modification instruction consisting of ::.. .TP is one of 'AND' 'OR' 'XOR' 'SET' .TP is _one_ or _more_ of 'I'dentifier 'L'ength 'D'ata .TP is an u32 value containing the CAN Identifier .TP is an u8 value containing the data length code (0 .. 8) .TP is always eight(!) u8 values containing the CAN frames data .PP The max. four modifications are performed in the order AND \-> OR \-> XOR \-> SET .SS "Supported CRC 8 profiles:" .TP Profile '1' (1U8) \- add one additional u8 value .TP Profile '2' (16U8) \- add u8 value from table[16] indexed by (data[1] & 0xF) .TP Profile '3' (SFFID_XOR) \- add u8 value (can_id & 0xFF) ^ (can_id >> 8 & 0xFF) .SH EXAMPLES cangw \-A \-s can0 \-d vcan3 \-e \-f 123:C00007FF \-m SET:IL:333.4.1122334455667788