Jul-10-2020, 02:54 PM
I want to extract the segment len from a TCP header so I made this code:
Any idea ?
def tcp_len_list(s): a = [len(p[TCP].payload) if p.haslayer(TCP) else None for p in s] return aThe problem is that extracts all values except 0
Any idea ?