Scapy: the Python-based interactive packet manipulation program & library. Supports Python 2 & Python 3.
Go to file
pbi 1f9f9251f3 More powerful sprintf format string : %[fmt[r],][cls[:nb].]field% where fmt is a classic one, r can be
appended for raw substitution (ex: IP.flags=0x18 instead of SA), nb is the number of the layer we want
(ex: for IP/IP packets, IP:2.src is the src of the upper IP layer). Special case : "%.time" is the creation time.
Ex : p.sprintf("%.time% %-15s,IP.src% -> %-15s,IP.dst% %IP.chksum% %03xr,IP.proto% %r,TCP.flags%")
2003-03-26 16:35:36 +00:00
scapy.py More powerful sprintf format string : %[fmt[r],][cls[:nb].]field% where fmt is a classic one, r can be 2003-03-26 16:35:36 +00:00