All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Damien Lagneux <damien.lagneux@openwide.fr>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Problem with the promiscuous mode of RTnet
Date: Mon, 4 May 2015 12:04:41 +0200	[thread overview]
Message-ID: <20150504100441.GM1993@hermes.click-hack.org> (raw)
In-Reply-To: <161457050.3957521.1430733251745.JavaMail.root@openwide.fr>

On Mon, May 04, 2015 at 11:54:11AM +0200, Damien Lagneux wrote:
> Hi Gilles, 
> 
> Thank you for your quick reply.
> 
> Here is the script I'm using to set RTnet:
> #!/bin/sh
> 
> modprobe rtnet
> modprobe rt_fec
> modprobe rtpacket
> modprobe rtudp
> modprobe rtcap
> 
> rtifconfig rteth0 up 10.5.18.161 netmask 255.255.0.0 promisc

I do not see anything wrong in the code. rtifconfig seems to ask the
IFF_PROMISC flag to be set for the driver, and the driver code seems
to take this flag into account. So I guess you will have to trace
the path from rtifconfig to the driver code to see where the
information gets lost.

> ifconfig rteth0 up

Note that what you are doing here is enabling the rtcap interface
(which is a plain linux interface, and not the rtnet interface), you
may want to avoid doing that in a first step, in case it fiddles
with the promisc bit too.

-- 
					    Gilles.


  reply	other threads:[~2015-05-04 10:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1740903282.3953811.1430731145805.JavaMail.root@openwide.fr>
2015-05-04  9:44 ` [Xenomai] Problem with the promiscuous mode of RTnet Damien Lagneux
2015-05-04  9:47   ` Gilles Chanteperdrix
2015-05-04  9:54     ` Damien Lagneux
2015-05-04 10:04       ` Gilles Chanteperdrix [this message]
2015-09-29 22:39   ` Gilles Chanteperdrix

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=20150504100441.GM1993@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=damien.lagneux@openwide.fr \
    --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.