title: How to verify if a packet in Scapy has a TCP layer
body: <p>I want to know how can I verify that a packet I received from the <code>sr1()</code> function in Scapy contains a TCP layer, in order to do some treatment on the TCP flags.</p>