PacketPrinter (version 1.0.1)
index
packetprinter.py

This file implements a "packet printer" (a tool to print packet).

 
Modules
       
scapy.packet

 
Classes
       
builtins.object
PacketPrinter

 
class PacketPrinter(builtins.object)
    PacketPrinter(hexa: bool = True, summary: bool = False, details1: bool = False, details2: bool = False, python: bool = False, raw_: bool = False, info: bool = False)
 
This class prints packets in different formats.
 
  Methods defined here:
__init__(self, hexa: bool = True, summary: bool = False, details1: bool = False, details2: bool = False, python: bool = False, raw_: bool = False, info: bool = False)
Initialize self.  See help(type(self)) for accurate signature.
print(self, packet: scapy.packet.Packet) -> None
This function calls generic packet printing functions.
print_command(self, packet: scapy.packet.Packet) -> None
This function prints the command to build the packet with scapy.
print_raw(self, packet: scapy.packet.Packet) -> None
This function prints the raw packet.
print_summary(self, packet: scapy.packet.Packet) -> None
This function prints the summary of the packet
(protocol, source IP, destination IP).

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ['PacketPrinter']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nPacketAnalysis Copyright (C) 2021 Maurice Lam...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis file implements a network sniffer.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/PacketAnalysis'

 
Author
        Maurice Lambert