(self, prn=None, lfilter=None)
prints a summary of each packet
prn:     function to apply to each packet instead of lambda x:x.summary()
lfilter: truth function to apply to each packet to decide whether it will be displayed
prints a summary of each packet
prn:     function to apply to each packet instead of lambda x:x.summary()
lfilter: truth function to apply to each packet to decide whether it will be displayed
prints a summary of each packet prn : function to apply to each packet instead of lambda x : x . summary () lfilter : truth function to apply to each packet to decide whether it will be displayed
def summary(self, prn=None, lfilter=None):
        """prints a summary of each packet
prn:     function to apply to each packet instead of lambda x:x.summary()
lfilter: truth function to apply to each packet to decide whether it will be displayed"""
        for r in self.res:
            if lfilter is not None:
                if not lfilter(r):
                    continue
            if prn is None:
                print self._elt2sum(r)
            else:
                print prn(r)
def summary ( self , prn = None , lfilter = None ) : for r in self . res : if lfilter is not None : if not lfilter ( r ) : continue if prn is None : print self . _elt2sum ( r ) else : print prn ( r )