* AW: netlink error -95 (Operation not supported) with can-utils/cangw @ 2014-02-04 10:55 Sandro Anders | CarMedialab 2014-02-04 11:37 ` Oliver Hartkopp 0 siblings, 1 reply; 7+ messages in thread From: Sandro Anders | CarMedialab @ 2014-02-04 10:55 UTC (permalink / raw) To: linux-can Hi all, I was able to compile the can-utils/* apps without any errors and the most are working. But if I call the cangw command I get the following error message: cangw -A -s can1 -d can3 netlink error -95 (Operation not supported) Both CAN's are up and running. My assumption is that there is some netlink support missing in my Kernel, isn't it? Thanks for your help. Sandro ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: AW: netlink error -95 (Operation not supported) with can-utils/cangw 2014-02-04 10:55 AW: netlink error -95 (Operation not supported) with can-utils/cangw Sandro Anders | CarMedialab @ 2014-02-04 11:37 ` Oliver Hartkopp 2014-02-04 11:52 ` Oliver Hartkopp 2014-02-04 12:02 ` AW: " Sandro Anders | CarMedialab 0 siblings, 2 replies; 7+ messages in thread From: Oliver Hartkopp @ 2014-02-04 11:37 UTC (permalink / raw) To: Sandro Anders | CarMedialab, linux-can Hi Sandro, did you load the can-gw module? When can-gw is not loaded the netlink functions for cangw are not registered. Regards, Oliver On 04.02.2014 11:55, Sandro Anders | CarMedialab wrote: > Hi all, > > I was able to compile the can-utils/* apps without any errors and the > most are working. But if I call the cangw command I get the following > error message: cangw -A -s can1 -d can3 > netlink error -95 (Operation not supported) > > Both CAN's are up and running. My assumption is that there is some > netlink support missing in my Kernel, isn't it? Thanks for your help. > > Sandro > -- > To unsubscribe from this list: send the line "unsubscribe linux-can" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: AW: netlink error -95 (Operation not supported) with can-utils/cangw 2014-02-04 11:37 ` Oliver Hartkopp @ 2014-02-04 11:52 ` Oliver Hartkopp 2014-02-04 12:02 ` AW: " Sandro Anders | CarMedialab 1 sibling, 0 replies; 7+ messages in thread From: Oliver Hartkopp @ 2014-02-04 11:52 UTC (permalink / raw) To: Sandro Anders | CarMedialab, linux-can ps. You would probably like to have the option '-e' too On 04.02.2014 12:37, Oliver Hartkopp wrote: > Hi Sandro, > > did you load the can-gw module? > > When can-gw is not loaded the netlink functions for cangw are not registered. > > Regards, > Oliver > > On 04.02.2014 11:55, Sandro Anders | CarMedialab wrote: >> Hi all, >> >> I was able to compile the can-utils/* apps without any errors and the >> most are working. But if I call the cangw command I get the following >> error message: cangw -A -s can1 -d can3 >> netlink error -95 (Operation not supported) >> >> Both CAN's are up and running. My assumption is that there is some >> netlink support missing in my Kernel, isn't it? Thanks for your help. >> >> Sandro >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-can" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-can" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 7+ messages in thread
* AW: AW: netlink error -95 (Operation not supported) with can-utils/cangw 2014-02-04 11:37 ` Oliver Hartkopp 2014-02-04 11:52 ` Oliver Hartkopp @ 2014-02-04 12:02 ` Sandro Anders | CarMedialab 2014-02-04 16:03 ` Yegor Yefremov 2014-02-04 18:19 ` Oliver Hartkopp 1 sibling, 2 replies; 7+ messages in thread From: Sandro Anders | CarMedialab @ 2014-02-04 12:02 UTC (permalink / raw) To: Oliver Hartkopp, linux-can Hi Olli, Hmm it wasn't clear to me that an additional module is necessary for using this feature. But anyway this explains the behaviour. Is there any documentation? I couldn't find anything about can-gw in the can.txt file. Many thanks to you and best regards, Sandro > -----Ursprüngliche Nachricht----- > Von: linux-can-owner@vger.kernel.org [mailto:linux-can- > owner@vger.kernel.org] Im Auftrag von Oliver Hartkopp > Gesendet: Dienstag, 4. Februar 2014 12:38 > An: Sandro Anders | CarMedialab; linux-can@vger.kernel.org > Betreff: Re: AW: netlink error -95 (Operation not supported) with can- > utils/cangw > > Hi Sandro, > > did you load the can-gw module? > > When can-gw is not loaded the netlink functions for cangw are not > registered. > > Regards, > Oliver > > On 04.02.2014 11:55, Sandro Anders | CarMedialab wrote: > > Hi all, > > > > I was able to compile the can-utils/* apps without any errors and the > > most are working. But if I call the cangw command I get the following > > error message: cangw -A -s can1 -d can3 > > netlink error -95 (Operation not supported) > > > > Both CAN's are up and running. My assumption is that there is some > > netlink support missing in my Kernel, isn't it? Thanks for your help. > > > > Sandro > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-can" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-can" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: AW: netlink error -95 (Operation not supported) with can-utils/cangw 2014-02-04 12:02 ` AW: " Sandro Anders | CarMedialab @ 2014-02-04 16:03 ` Yegor Yefremov 2014-02-04 16:46 ` AW: " Sandro Anders | CarMedialab 2014-02-04 18:19 ` Oliver Hartkopp 1 sibling, 1 reply; 7+ messages in thread From: Yegor Yefremov @ 2014-02-04 16:03 UTC (permalink / raw) To: Sandro Anders | CarMedialab; +Cc: Oliver Hartkopp, linux-can@vger.kernel.org Hi Sandro, you could cangw description here: http://elinux.org/Can-utils as soon as you sort the things out. Regards, Yegor On Tue, Feb 4, 2014 at 1:02 PM, Sandro Anders | CarMedialab <sandro.anders@carmedialab.com> wrote: > Hi Olli, > > Hmm it wasn't clear to me that an additional module is necessary for using this feature. But anyway this explains the behaviour. Is there any documentation? I couldn't find anything about can-gw in the can.txt file. > > Many thanks to you and best regards, > Sandro > >> -----Ursprüngliche Nachricht----- >> Von: linux-can-owner@vger.kernel.org [mailto:linux-can- >> owner@vger.kernel.org] Im Auftrag von Oliver Hartkopp >> Gesendet: Dienstag, 4. Februar 2014 12:38 >> An: Sandro Anders | CarMedialab; linux-can@vger.kernel.org >> Betreff: Re: AW: netlink error -95 (Operation not supported) with can- >> utils/cangw >> >> Hi Sandro, >> >> did you load the can-gw module? >> >> When can-gw is not loaded the netlink functions for cangw are not >> registered. >> >> Regards, >> Oliver >> >> On 04.02.2014 11:55, Sandro Anders | CarMedialab wrote: >> > Hi all, >> > >> > I was able to compile the can-utils/* apps without any errors and the >> > most are working. But if I call the cangw command I get the following >> > error message: cangw -A -s can1 -d can3 >> > netlink error -95 (Operation not supported) >> > >> > Both CAN's are up and running. My assumption is that there is some >> > netlink support missing in my Kernel, isn't it? Thanks for your help. >> > >> > Sandro >> > -- >> > To unsubscribe from this list: send the line "unsubscribe linux-can" in >> > the body of a message to majordomo@vger.kernel.org >> > More majordomo info at http://vger.kernel.org/majordomo-info.html >> > >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-can" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-can" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* AW: AW: netlink error -95 (Operation not supported) with can-utils/cangw 2014-02-04 16:03 ` Yegor Yefremov @ 2014-02-04 16:46 ` Sandro Anders | CarMedialab 0 siblings, 0 replies; 7+ messages in thread From: Sandro Anders | CarMedialab @ 2014-02-04 16:46 UTC (permalink / raw) To: Yegor Yefremov; +Cc: Oliver Hartkopp, linux-can Hi Yegor, Hi Olli, thanks to you it's working now. Regards, Sandro > -----Ursprüngliche Nachricht----- > Von: linux-can-owner@vger.kernel.org [mailto:linux-can- > owner@vger.kernel.org] Im Auftrag von Yegor Yefremov > Gesendet: Dienstag, 4. Februar 2014 17:03 > An: Sandro Anders | CarMedialab > Cc: Oliver Hartkopp; linux-can@vger.kernel.org > Betreff: Re: AW: netlink error -95 (Operation not supported) with can- > utils/cangw > > Hi Sandro, > > you could cangw description here: http://elinux.org/Can-utils as soon > as you sort the things out. > > Regards, > Yegor > > On Tue, Feb 4, 2014 at 1:02 PM, Sandro Anders | CarMedialab > <sandro.anders@carmedialab.com> wrote: > > Hi Olli, > > > > Hmm it wasn't clear to me that an additional module is necessary for > using this feature. But anyway this explains the behaviour. Is there any > documentation? I couldn't find anything about can-gw in the can.txt file. > > > > Many thanks to you and best regards, > > Sandro > > > >> -----Ursprüngliche Nachricht----- > >> Von: linux-can-owner@vger.kernel.org [mailto:linux-can- > >> owner@vger.kernel.org] Im Auftrag von Oliver Hartkopp > >> Gesendet: Dienstag, 4. Februar 2014 12:38 > >> An: Sandro Anders | CarMedialab; linux-can@vger.kernel.org > >> Betreff: Re: AW: netlink error -95 (Operation not supported) with can- > >> utils/cangw > >> > >> Hi Sandro, > >> > >> did you load the can-gw module? > >> > >> When can-gw is not loaded the netlink functions for cangw are not > >> registered. > >> > >> Regards, > >> Oliver > >> > >> On 04.02.2014 11:55, Sandro Anders | CarMedialab wrote: > >> > Hi all, > >> > > >> > I was able to compile the can-utils/* apps without any errors and the > >> > most are working. But if I call the cangw command I get the following > >> > error message: cangw -A -s can1 -d can3 > >> > netlink error -95 (Operation not supported) > >> > > >> > Both CAN's are up and running. My assumption is that there is some > >> > netlink support missing in my Kernel, isn't it? Thanks for your help. > >> > > >> > Sandro > >> > -- > >> > To unsubscribe from this list: send the line "unsubscribe linux-can" > in > >> > the body of a message to majordomo@vger.kernel.org > >> > More majordomo info at http://vger.kernel.org/majordomo-info.html > >> > > >> -- > >> To unsubscribe from this list: send the line "unsubscribe linux-can" in > >> the body of a message to majordomo@vger.kernel.org > >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-can" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-can" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: AW: AW: netlink error -95 (Operation not supported) with can-utils/cangw 2014-02-04 12:02 ` AW: " Sandro Anders | CarMedialab 2014-02-04 16:03 ` Yegor Yefremov @ 2014-02-04 18:19 ` Oliver Hartkopp 1 sibling, 0 replies; 7+ messages in thread From: Oliver Hartkopp @ 2014-02-04 18:19 UTC (permalink / raw) To: Sandro Anders | CarMedialab; +Cc: linux-can On 04.02.2014 13:02, Sandro Anders | CarMedialab wrote: > > Is there any documentation? > Hi Sandro, it's mostly 'documented by sourcecode' :-) E.g. the netlink interface is described here: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/can/gw.h and the cangw tool (which C-file is a good example too) has a big help text: $ cangw Usage: cangw [options] Commands: -A (add a new rule) -D (delete a rule) -F (flush / delete all rules) -L (list all rules) Mandatory: -s <src_dev> (source netdevice) -d <dst_dev> (destination netdevice) Options: -t (preserve src_dev rx timestamp) -e (echo sent frames - recommended on vcanx) -i (allow to route to incoming interface) -l <hops> (limit the number of frame hops / routings) -f <filter> (set CAN filter) -m <mod> (set frame modifications) -x <from_idx>:<to_idx>:<result_idx>:<init_xor_val> (XOR checksum) -c <from>:<to>:<result>:<init_val>:<xor_val>:<crctab[256]> (CRC8 cs) -p <profile>:[<profile_data>] (CRC8 checksum profile & parameters) Values are given and expected in hexadecimal values. Leading 0s can be omitted. <filter> is a <value><mask> CAN identifier filter <can_id>:<can_mask> (matches when <received_can_id> & mask == can_id & mask) <can_id>~<can_mask> (matches when <received_can_id> & mask != can_id & mask) <mod> is a CAN frame modification instruction consisting of <instruction>:<can_frame-elements>:<can_id>.<can_dlc>.<can_data> - <instruction> is one of 'AND' 'OR' 'XOR' 'SET' - <can_frame-elements> is _one_ or _more_ of 'I'dentifier 'L'ength 'D'ata - <can_id> is an u32 value containing the CAN Identifier - <can_dlc> is an u8 value containing the data length code (0 .. 8) - <can_data> is always eight(!) u8 values containing the CAN frames data The max. four modifications are performed in the order AND -> OR -> XOR -> SET Example: cangw -A -s can0 -d vcan3 -e -f 123:C00007FF -m SET:IL:333.4.1122334455667788 Supported CRC 8 profiles: Profile '1' (1U8) - add one additional u8 value Profile '2' (16U8) - add u8 value from table[16] indexed by (data[1] & 0xF) Profile '3' (SFFID_XOR) - add u8 value (can_id & 0xFF) ^ (can_id >> 8 & 0xFF) $ _ The idea behind the output format of 'cangw -L' is, that all the routing jobs can be re-directed into a (script-)file to set up the configuration again. Regards, Oliver ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-02-04 18:19 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-02-04 10:55 AW: netlink error -95 (Operation not supported) with can-utils/cangw Sandro Anders | CarMedialab 2014-02-04 11:37 ` Oliver Hartkopp 2014-02-04 11:52 ` Oliver Hartkopp 2014-02-04 12:02 ` AW: " Sandro Anders | CarMedialab 2014-02-04 16:03 ` Yegor Yefremov 2014-02-04 16:46 ` AW: " Sandro Anders | CarMedialab 2014-02-04 18:19 ` Oliver Hartkopp
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).