Ed S
Ed S

Reputation: 385

Filter only TCP SYN segments in scapy

How can I filter only TCP SYN segments in Scapy? Could someone give me a simple example, please? I tried hard but I dont know scapy!

Upvotes: 1

Views: 280

Answers (1)

Ed S
Ed S

Reputation: 385

Only TCP SYN segments:

tcp[tcpflags] & tcp-syn != 0

Upvotes: 2

Related Questions