#!/usr/bin/env python from scapy.all import * def pkt_callback(pkt): #pkt.show() pass sniff(iface="eth0", prn=pkt_callback, filter="ip", store=0)