Messages in this thread | | | Date | Sun, 8 Nov 2009 21:27:04 +0330 | From | Ali Gholami Rudi <> | Subject | Re: [PATCH] trivial: fix checking socket() in net tstamp example |
| |
Hi Patrick,
Patrick Ohly <patrick.ohly@intel.com> wrote: > > --- a/Documentation/networking/timestamping/timestamping.c > > +++ b/Documentation/networking/timestamping/timestamping.c > > @@ -370,7 +370,7 @@ int main(int argc, char **argv) > > } > > > > sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); > > - if (socket < 0) > > + if (sock < 0) > > Argh, of course you are right. FWIW, acknowledged.
By the way, I tried igb hardware timestamp but HWTSTAMP_FILTER_ALL works almost like HWTSTAMP_FILTER_PTP_*. Isn't it supposed to timestamp all of the incoming packets? Maybe there is something wrong with my test setup?
Thanks, Ali
| |