@conf.commands.register
def tshark(*args, **kargs):
 sniff(prn=(lambda x: x.display()), *args, **kargs)

@ conf . commands . register def tshark ( * args , ** kargs ) : sniff ( prn = ( lambda x : x . display ( ) ) , * args , ** kargs )
sniff packets and print them calling pkt .