All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Seeger <steven.seeger@nasa.gov>
To: xenomai@xenomai.org
Cc: "Pham, Phong" <phamp@ddc-web.com>,
	"Hillman, Robert" <hillman@ddc-web.com>
Subject: Re: [Xenomai] Does RTNET supports TCP?
Date: Sat, 6 Oct 2018 02:35:46 -0400	[thread overview]
Message-ID: <1806354.2vQZyoBssO@wirbelwind> (raw)
In-Reply-To: <C2EC5BA46D13CD44B5915A8FEEB4C44ED1819D8C@DDCEXCH.ddc-ny.com>

On Thursday, October 4, 2018 9:02:46 PM EDT Pham, Phong wrote:
> Hi,
> 
> I noticed starting Xenomai 3.0.1 until now (3.0.7), there is net/ in
> .../kernel/drivers/ and in ../kernel/drivers/net/stack/ipv4/Kconfig
> 
> # source "drivers/xenomai/net/stack/ipv4/tcp/Kconfig"

I don't know why this is commented out. It looks like Gilles's initial import 
of this file in commit 106ffba7b55d506143966ff16158ee79b0007336 had it 
commented out.

I know that UDP is typically used with RTNET. TCP is complicated and has a lot 
of timers and dynamic state that makes it less than desirable for hard-
realtime systems. Probably Jan should chime in on this. I think he has the 
most experience using RTnet at this point.

> 5)      When I created a socket with rt_dev_socket(AF_INET, SOCK_STREAM, 0);
> and attempting to rt_dev_connect(fd, server_ip_addr,
> sizeof(server_ip_addr)), I get errno = 25 (Inappropriate ioctl for device).
>  Does it mean b/c TCP is not supported in RTnet and I attempt to connect
> via TCP (w/ socket SOCK_STREAM)?

Sorry I can't answer the other questions, as I am not working on rtnet myself. 
However, I would suspect that since TCP doesn't compile that is why 
SOCK_STREAM is not working. Try SOCK_DGRAM and see if it works. If not, then 
are you sure you have rtnet drivers for your network device compiled and ready 
to use? Remember, the driver for your network device must be realtime-safe. I 
recall seeing a guide for some simple changes to make to a Linux ethernet 
driver to use as a starting point for porting it to RTNET, but I can't seem to 
find it. Anyone?

Steven





  reply	other threads:[~2018-10-06  6:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-05  1:02 [Xenomai] Does RTNET supports TCP? Pham, Phong
2018-10-06  6:35 ` Steven Seeger [this message]
2018-10-06  8:07   ` Sebastian Smolorz
2018-10-08 13:08     ` Steven Seeger
2018-10-08 17:55     ` Pham, Phong
2018-10-08 18:49       ` Sebastian Smolorz
2018-10-08 19:46         ` Steven Seeger

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=1806354.2vQZyoBssO@wirbelwind \
    --to=steven.seeger@nasa.gov \
    --cc=hillman@ddc-web.com \
    --cc=phamp@ddc-web.com \
    --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.