SIOCGSTAMP ioctl request for TCP

Discussion in 'Linux Networking' started by Amit Yadav, Jan 14, 2005.

  1. Amit Yadav

    Amit Yadav Guest


    Is the option SIOCGSTAMP ioctl request supported for TCP sockets ???
    This request gets the timestamp of the last packet received on a socekt.
    The man pages suggests its NOT, but i would like to get a confirmation.

    since it seems, looking into the kernel code, that the timestamp is
    getting stored in sock struct for udp and raw socket but not fot tcp
    socket, (which explains why my ioctl call is failing all the times), can
    anyone shed some light on why it is not supported for TCP socket.


    Amit Yadav, Jan 14, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.