From: Alex Riesen <fork0@users.sf.net>
To: Maciej Soltysiak <solt@dns.toxicfilms.tv>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: SIOCGSTAMP does not work ?
Date: Wed, 22 Jan 2003 08:45:49 +0100 [thread overview]
Message-ID: <20030122074549.GA362@steel> (raw)
In-Reply-To: <Pine.LNX.4.51.0301211759260.15348@dns.toxicfilms.tv>
Maciej Soltysiak, Tue, Jan 21, 2003 18:03:34 +0100:
> > > i was recently trying to use SIOCGSTAMP to get the date of the last packet
> > > that arrived on the socket. like so:
> >
> > which kernel?
> 2.4.20
>
> If you can, please try to get the timestamp on any socket using.
>
> struct timeval tv;
> ...
> ioctl (s, SIOCGSTAMP, &tv);
>
sorry for delay.
I don't think SIOCGSTAMP was designed to work on "any socket".
It retrieves the timestamp correctly for PF_PACKET sockets though.
I may want to look at the libpcap source.
-alex
prev parent reply other threads:[~2003-01-22 7:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-21 15:44 SIOCGSTAMP does not work ? Maciej Soltysiak
2003-01-21 18:07 ` David S. Miller
[not found] ` <20030121165515.GB5239@riesen-pc.gr05.synopsys.com>
[not found] ` <Pine.LNX.4.51.0301211759260.15348@dns.toxicfilms.tv>
2003-01-22 7:45 ` Alex Riesen [this message]
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=20030122074549.GA362@steel \
--to=fork0@users.sf.net \
--cc=linux-kernel@vger.kernel.org \
--cc=solt@dns.toxicfilms.tv \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox