[ECOS] Custom ioctl().
Max Müller
mxmr@gmx.net
Mon Jan 14 11:39:00 GMT 2008
Hello,
try it with:
*
ins skt; // socket handler
int on; // on command parameter
// Init your socket
skt = ...
...
on = 1;
setsockopt(skt, SOL_SOCKET, SO_TIMESTAMP, &on,sizeof(on));
*This workes fine for me...
Greetings,
Max
Andrew Lunn schrieb:
> On Mon, Jan 14, 2008 at 10:54:57AM +0100, Antoine Zen-Ruffinen wrote:
>
>> Hello,
>>
>> For my project, I need Ethernet frame timestamps. Usually I do this
>> under linux: ioctl(sock, SIOCGSTAMP, &timeStamp). But SIOCGSTAMP is
>> not implemented in eCos.
>>
>
> The TCP/IP stack in eCos is from FreeBSD. I would suggest you look at
> how FreeBSD supports getting such time stamps. That is probably how
> you will need to implement it in eCos.
>
> Andrew
>
>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list