title: Python Networking Timestamp (SO_TIMESTAMP, SO_TIMESTAMPNS, SO_TIMESTAMPING)
body: <p>Linux Kernel offers a few ways to get timestamps for received (SO_TIMESTAMP, SO_TIMESTAMPNS, SO_TIMESTAMPING) or sent (SO_TIMESTAMPING) packets. </p>
  
  <p>Kernel Doc: <a href="https://www.kernel.org/doc/Documentation/networking/timestamping.txt" rel="nofollow noreferrer">https://www.kernel.org/doc/Documentation/networking/timestamping.txt</a></p>
  
  <p>Is there a way I can use that with Python? I don't see any SO_TIMESTAMP constant inside the Python sources. Tried 3.6.2 and GitHub master branch.</p>
  
  <p>Right now, I can only use SIOCGSTAMP that gives me the timestamp of the last received packet and nothing seems available for sent packet timestamp.</p>