All of lore.kernel.org
 help / color / mirror / Atom feed
* RTNet and setsockopt
@ 2020-04-16 16:08 Per Oberg
       [not found] ` <VI1PR05MB59172B3C0D8909BD37F9E947F6D80@VI1PR05MB5917.eurprd05.prod.outlook.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Per Oberg @ 2020-04-16 16:08 UTC (permalink / raw)
  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 use are 

setsockopt: 
 SO_RCVTIMEO
 SO_SNDTIMEO
 SO_DONTROUTE

These return "No such device". I guess that this is because setsockopt is not rt-compatible, correct ? ( There seem to be no corresponding rt_setsockopt... )

ioctl :
 IFF_PROMISC | IFF_BROADCAST

These return "Operation not supported". 

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 Öberg 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-04-17  6:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 16:08 RTNet and setsockopt Per Oberg
     [not found] ` <VI1PR05MB59172B3C0D8909BD37F9E947F6D80@VI1PR05MB5917.eurprd05.prod.outlook.com>
2020-04-16 17:00   ` Per Oberg
2020-04-16 18:04     ` Per Oberg
2020-04-17  6:18       ` Jan Kiszka

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.