(self,count=-1)
return res
return a list of all packets in the pcap file
return a list of all packets in the pcap file
return a list of all packets in the pcap file
def read_all(self,count=-1):
        """return a list of all packets in the pcap file
        """
        res=[]
        while count != 0:
            count -= 1
            p = self.read_packet()
            if p is None:
                break
            res.append(p)
        return res
def read_all ( self , count = - 1 ) : res = [ ] while count != 0 : count -= 1 p = self . read_packet ( ) if p is None : break res . append ( p ) return res