Bases: openvisualizer.eventBus.eventBusClient.eventBusClient
Class which is responsible for translating between 6LoWPAN and IPv6 headers.
This class implements the following RFCs:
http://tools.ietf.org/html/rfc6282 Compression Format for IPv6 Datagrams over IEEE 802.15.4-Based Networks.
http://tools.ietf.org/html/rfc2460 Internet Protocol, Version 6 (IPv6) Specification
The IPv6 Flow Label within a RPL domain
Turn byte array representing IPv6 packets into into dictionary of fields.
See http://tools.ietf.org/html/rfc2460#page-4.
Parameters: | ipv6 – [in] Byte array representing an IPv6 packet. |
---|---|
Raises : | ValueError when some part of the process is not defined in the standard. |
Raises : | NotImplementedError when some part of the process is defined in the standard, but not implemented in this module. |
Returns: | A dictionary of fields. |
Compact IPv6 header into 6LowPAN header.
Parameters: | ipv6 – [in] A disassembled IPv6 packet. |
---|---|
Raises : | ValueError when some part of the process is not defined in the standard. |
Raises : | NotImplementedError when some part of the process is defined in the standard, but not implemented in this module. |
Returns: | A disassembled 6LoWPAN packet. |
Turn dictionary of 6LoWPAN header fields into byte array.
Parameters: | lowpan – [in] dictionary of fields representing a 6LoWPAN header. |
---|---|
Returns: | A list of bytes representing the 6LoWPAN packet. |