From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 19 Jun 2016 08:45:31 +0200 From: Gilles Chanteperdrix Message-ID: <20160619064531.GL18433@hermes.click-hack.org> References: <5763C908.6010007@gmail.com> <20160617100728.GK32532@hermes.click-hack.org> <5763DEE9.1000801@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Xenomai] need help to Xenomai Cobalt RTnet socket UDP recvfrom non blocking List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: laurent LEQUIEVRE Cc: "laurent.lequievre" , "xenomai@xenomai.org" On Fri, Jun 17, 2016 at 03:04:54PM +0200, laurent LEQUIEVRE wrote: > Hi Gilles, > > It works fine with : > int64_t timeout = 3e09; // 3 seconds to test > int return_ioctl = ioctl(udp_socket,RTNET_RTIOC_TIMEOUT,&timeout); > > but it needed to add these 'includes' to compile : > #include > #include > #define RTIOC_TYPE_NETWORK RTDM_CLASS_NETWORK > #define RTNET_RTIOC_TIMEOUT _IOW(RTIOC_TYPE_NETWORK, 0x11, int64_t) > > I read in the documentation that rtnet is included in xenomai 3, why there > is no rtnet.h file installed with the xenomai include files I simply forgot that part. I have used the headers for programs in Xenomai sources only, where the headers are available. This needs a cleanup, as the headers mix kernel and user declarations, and in 3.x, the RTDM drivers headers no longer start with rt. So rtnet.h would probably become rtdm/net.h, and some part of it would have to move to rtdm/uapi/net.h. -- Gilles. https://click-hack.org