title: How to Derive the TSVal and TSecr TCP option fields using python?
body: <p>I'm trying to develop a small proof-of-concept for a python networking project but I've come across a hurdle. Would anyone be able to explain how I could derive the TSVal and TSecr values from the Operating system in python?
  I'm using Scapy to see if I could connect to a simple python server program as a client. The statement below is where I'm sort of stuck.</p>
  
  <pre><code>TCP(flags='S', options=[('Timestamp', (TSval, TSecr))])
  </code></pre>
  
  <p>So if anyone could recommend an algorithm or a python library to calculate the TSval and TSecr, it would be very much appreciated! </p>
  
  <p>Thanks in advance!</p>