![]() |
Low-Power Border Router
|
Compressor/Decompressor for 6LoWPAN packets. More...
Public Member Functions | |
| def | __init__ |
| Initializes this object. | |
| def | ipv6_headers_to_lowpan_headers |
| Compacts IPv6 headers into a 6LoWPAN headers. | |
| def | lowpan_headers_to_ipv6_headers |
| Inflates 6LoWPAN headers into IPv6 headers. | |
Public Attributes | |
| username | |
| prefixS | |
| addressCompressor | |
| log | |
Compressor/Decompressor for 6LoWPAN packets.
| def Lowpan.PacketCompressor.PacketCompressor.__init__ | ( | self, | |
| username, | |||
| prefixS | |||
| ) |
Initializes this object.
| username | The name of the user this instance works for. |
| prefixS | The IPv6 prefix of the network. |
| def Lowpan.PacketCompressor.PacketCompressor.ipv6_headers_to_lowpan_headers | ( | self, | |
| ipv6_headers | |||
| ) |
Compacts IPv6 headers into a 6LoWPAN headers.
| ipv6_headers | The IPv6 packet to be compacted. |
| def Lowpan.PacketCompressor.PacketCompressor.lowpan_headers_to_ipv6_headers | ( | self, | |
| lowpan_headers, | |||
| MACsrc_addrS | |||
| ) |
Inflates 6LoWPAN headers into IPv6 headers.
| lowpan_headers | The IPv6 packet to be compacted. |
| MACsrc_addrS | MAC address of the mote this packets originates from. |