I try to do the below filter in my Sniff function:
pkt = sniff(count=1, iface='Qualcomm Atheros QCA61x4A Wireless Network Adapter', filter='host 178.0.0.0/8')
try:
print(str(pkt[0][1].src)+'-->'+str(pkt[0][1].dst)+":::"+str(pkt[0][3].load))
except:
pass
But this filter do not work, instead, the code prints the traffic to all hosts and not the 178.0.0.0/24