python - Sniff() function is not filtering packets as mentioned in the option "filter" -


i have python script uses scapy sniff trafic. have line

sp=input('please enter sourceport number') s="tcp , port "+str(sp) syn=sniff(filter=s, iface="eth0",count=1,timeout=60) 

the problem result of includes non tcp packet :

ether / ip / udp / dns qry "daisy.ubuntu.com." 

what cause of problem , how can solve it.

thanks in advance.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -