linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hubert Denkmair <xor@xor.wtf>
To: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: socketcan and libnl3
Date: Sun, 22 May 2016 12:17:31 +0200	[thread overview]
Message-ID: <5741873B.5040300@xor.wtf> (raw)

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

             reply	other threads:[~2016-05-22 10:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-22 10:17 Hubert Denkmair [this message]
2016-06-14 11:05 ` socketcan and libnl3 ajneu
2016-06-14 13:57   ` Hubert Denkmair

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5741873B.5040300@xor.wtf \
    --to=xor@xor.wtf \
    --cc=linux-can@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).