All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joshua Quesenberry" <engnfrc@gmail.com>
To: <linux-can@vger.kernel.org>
Cc: <engnfrc@gmail.com>
Subject: ip link valid options checking
Date: Wed, 7 Jul 2021 13:45:16 -0400	[thread overview]
Message-ID: <002501d77357$d93c36b0$8bb4a410$@gmail.com> (raw)

Good Afternoon,

Do any of you know a way to check what options are valid when setting up a
CAN device with the ip link commands, either from bash or through C++? I'm
working on a piece of code that will get used on systems with varying CAN
drivers and for instance one of them doesn't support CAN-FD, so how would I
be able to know that setting the fd flag or dbitrate value would fail before
calling the setup command and seeing it fail?

Thanks,

Josh Q



             reply	other threads:[~2021-07-07 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-07 17:45 Joshua Quesenberry [this message]
2021-07-09 12:00 ` ip link valid options checking Vincent MAILHOL
2021-07-09 15:07   ` Stefan Mätje
2021-07-10 10:19     ` Oliver Hartkopp
2021-07-13 19:54       ` Stefan Mätje

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='002501d77357$d93c36b0$8bb4a410$@gmail.com' \
    --to=engnfrc@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.