It seems that the filter of sniff function does not work properly.
filter
sniff
I m executing the sniff with the following filter
a=sniff(co
I had the same or similar problem - the sniff filter did not work.
Installing tcpdump solved the problem for me.