linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* socketcan and libnl3
@ 2016-05-22 10:17 Hubert Denkmair
  2016-06-14 11:05 ` ajneu
  0 siblings, 1 reply; 3+ messages in thread
From: Hubert Denkmair @ 2016-05-22 10:17 UTC (permalink / raw)
  To: linux-can@vger.kernel.org

Hi there,

is anyone here using libnl3 to configure socketcan links?

I'm running into trouble and I'm wondering whether it's just me or if the 
rtnl_link_can_set_ctrlmode() and rtnl_link_can_set_restart_ms()
calls should work at all?

So, setting bitrate and sample-point via libnl works for me,
setting e.g. CAN_CTRLMODE_LISTENONLY does not.
Setting modes via iproute2 works as expected.

My code is here:
https://raw.githubusercontent.com/HubertD/cangaroo/master/canifconfig/main.c
(will gladly boil that down to a few lines if anyone is interested...)

Greetings,

Hubert

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-14 13:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-22 10:17 socketcan and libnl3 Hubert Denkmair
2016-06-14 11:05 ` ajneu
2016-06-14 13:57   ` Hubert Denkmair

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).