def run(iface_name=None, bpf=None, summary=None, max_packets=50):
    """Run the Simple Packet Printer Example"""

    # Create the classes
    streamer = packet_streamer.PacketStreamer(iface_name=iface_name, bpf=bpf, max_packets=max_packets)
    meta = packet_meta.PacketMeta()
    rdns = reverse_dns.ReverseDNS()
    tags = packet_tags.PacketTags()
    tmeta = transport_meta.TransportMeta()
    printer = packet_summary.PacketSummary()

    # Set up the chain
    meta.link(streamer)
    rdns.link(meta)
    tags.link(rdns)
    tmeta.link(tags)
    printer.link(tmeta)

    # Pull the chain
    printer.pull()
def run ( iface_name = None , bpf = None , summary = None , max_packets = 50 ) : streamer = packet_streamer . PacketStreamer ( iface_name = iface_name , bpf = bpf , max_packets = max_packets ) meta = packet_meta . PacketMeta ( ) rdns = reverse_dns . ReverseDNS ( ) tags = packet_tags . PacketTags ( ) tmeta = transport_meta . TransportMeta ( ) printer = packet_summary . PacketSummary ( ) meta . link ( streamer ) rdns . link ( meta ) tags . link ( rdns ) tmeta . link ( tags ) printer . link ( tmeta ) printer . pull ( )
Run the Simple Packet Printer Example