From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 16 Apr 2020 11:08:25 -0500 (CDT) From: Per Oberg Message-ID: <2018325684.72682.1587053305425.JavaMail.zimbra@wolfram.com> Subject: RTNet and setsockopt MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai Dear list I am "porting" a posix application using raw network packages to RTNet. The= old code is trying to use setsockopt and ioctl. The calls I am trying to u= se are=20 setsockopt:=20 SO_RCVTIMEO SO_SNDTIMEO SO_DONTROUTE These return "No such device". I guess that this is because setsockopt is n= ot rt-compatible, correct ? ( There seem to be no corresponding rt_setsocko= pt... ) ioctl : IFF_PROMISC | IFF_BROADCAST These return "Operation not supported".=20 My code works fairly well as it is, and I probably do not need SO_DONTROUTE= , IFF_PROMISC, and IFF_BROADCAST with rtnet. I would, however, like to have= SO_RCVTIMEO, SO_SNDTIMEO or nonblock. Do I need to use O_NONBLOCK together= with send() instead or am I missing something ? Best Regards Per =C3=96berg=20