@conf.commands.register
def rdpcap(filename, count=(-1)):
 return PcapReader(filename).read_all(count=count)

@ conf . commands . register def rdpcap ( filename , count = ( - 1 ) ) : return PcapReader ( filename ) . read_all ( count = count )
read a pcap file and return a packet list count: read only <count> packets .