(self,prn=None, lfilter=None)
prints a summary of each packet with the packet's number
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 with the packet's number
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 with the packet s number 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 nsummary(self,prn=None, lfilter=None):
        """prints a summary of each packet with the packet's number
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 i in range(len(self.res)):
            if lfilter is not None:
                if not lfilter(self.res[i]):
                    continue
            print conf.color_theme.id(i,fmt="%04i"),
            if prn is None:
                print self._elt2sum(self.res[i])
            else:
                print prn(self.res[i])
def nsummary ( self , prn = None , lfilter = None ) : for i in range ( len ( self . res ) ) : if lfilter is not None : if not lfilter ( self . res [ i ] ) : continue print conf . color_theme . id ( i , fmt = "%04i" ) , if prn is None : print self . _elt2sum ( self . res [ i ] ) else : print prn ( self . res [ i ] )