From: Andrew Tannenbaum <trb@domain.hid>
To: xenomai@xenomai.org, Wolfgang Grandegger <wg@domain.hid>
Subject: Re: [Xenomai-help] odd code for loopback option in /src/utils/can/rtcansend.c
Date: Thu, 18 Aug 2011 15:19:21 -0400 [thread overview]
Message-ID: <4E4D65B9.2090901@domain.hid> (raw)
In-Reply-To: <4E4D60C9.1020409@domain.hid>
Andrew Tannenbaum wrote:
> It looks like the default value for loopback is -1, and if you set it to
> 0 or 1, it turns loopback on, which seems strange. I don't understand
> rt_dev_setsockopt() fully, so I'm not sure if it's a bug - I don't know
> if -1 and 0 and 1 are three separate loopback states, but I think it
> merits attention. I think either the code is wrong or the help string
> and man page are not clear.
Ah, I see what it's doing. It's changing an existing state, so there
are three choices:
-1: no change
0: clear
1: set
So the code looks correct.
-Andy
prev parent reply other threads:[~2011-08-18 19:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 18:58 [Xenomai-help] odd code for loopback option in /src/utils/can/rtcansend.c Andrew Tannenbaum
2011-08-18 19:19 ` Andrew Tannenbaum [this message]
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=4E4D65B9.2090901@domain.hid \
--to=trb@domain.hid \
--cc=wg@domain.hid \
--cc=xenomai@xenomai.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.