![]() |
Low-Power Border Router
|
Conversion between IPv6 and LoWPAN packets. More...
Public Member Functions | |
| def | __init__ |
| Initializes this object. | |
| def | ipv6_string_to_lowpan_string |
| Compacts an IPv6 packet into a 6LoWPAN packet. | |
| def | lowpan_string_to_ipv6_string |
| Compacts an IPv6 packet into a 6LoWPAN packet. | |
Public Attributes | |
| username | |
| converter | |
| packetCompressor | |
| printer | |
| log | |
Conversion between IPv6 and LoWPAN packets.
| def Lowpan.Lowpan.Lowpan.__init__ | ( | self, | |
| username, | |||
| prefix_hexString | |||
| ) |
Initializes this object.
| username | The name of the user this instance works for. |
| prefix_hexString | The IPv6 prefix of the network, written as 'aaaa:bbbb:cccc:dddd'. |
| def Lowpan.Lowpan.Lowpan.ipv6_string_to_lowpan_string | ( | self, | |
| ipv6_string | |||
| ) |
Compacts an IPv6 packet into a 6LoWPAN packet.
| ipv6_string | The IPv6 packet to be compacted. |
| def Lowpan.Lowpan.Lowpan.lowpan_string_to_ipv6_string | ( | self, | |
| lowpan_string, | |||
| macSrcAddrS | |||
| ) |
Compacts an IPv6 packet into a 6LoWPAN packet.
| lowpan_string | The 6LoWPAN packet. |
| macSrcAddrS | The MAC address of the mote the packet originated from. |