How to print field offsets in scapy?
How to print field offsets in scapy? Question: I have a scapy protocol and a packet. Like "First steps" say, it’s easy to print a packet with its fields, and the packet’s binary dump: >>> a=Ether()/IP(dst="www.slashdot.org")/TCP()/"GET /index.html HTTP/1.0 nn" >>> a <Ether type=IPv4 |<IP frag=0 proto=6 dst=Net("www.slashdot.org/32") |<TCP |<Raw load=’GET /index.html HTTP/1.0 nn’ |> >>> …