Printer class for 6LoWPAN and IPv6 packets.
More...
List of all members.
Detailed Description
Printer class for 6LoWPAN and IPv6 packets.
Constructor & Destructor Documentation
| def Lowpan.Printer.Printer.__init__ |
( |
|
self, |
|
|
|
username |
|
) |
| |
Initializes this object.
- Parameters:
-
| username | The name of the user this instance works for. |
Member Function Documentation
| def Lowpan.Printer.Printer.print_string |
( |
|
self, |
|
|
|
packet_string |
|
) |
| |
Prints the contents of a string representing a packet.
Bytes are printed in rows or 16, in a format compatible to Wireshark.
- Precondition:
- The string needs to be read beforehand, i.e. from a tun virtual interface.
- Parameters:
-
| packet_string | A string of bytes representing a packet. |
| def Lowpan.Printer.Printer.print_ipv6_headers |
( |
|
self, |
|
|
|
ipv6_headers |
|
) |
| |
Prints the contents of a previously disassembled IPv6 headers.
- Precondition:
- Call ipv6_string_to_headers to obtain the headers.
- Parameters:
-
| ipv6_headers | A disassembled IPv6 packet. |
| def Lowpan.Printer.Printer.print_lowpan_headers |
( |
|
self, |
|
|
|
lowpan_headers |
|
) |
| |
Prints the contents of a previously disassembled lowpan headers.
- Precondition:
- Call lowpan_string_to_headers to obtain the headers.
- Parameters:
-
| lowpan_headers | A disassembled lowpan packet. |
Member Data Documentation