![]() |
Low-Power Border Router
|
Converts IPv6 and 6LoWPAN packets between strings and header dictionnaries. More...
Public Member Functions | |
| def | __init__ |
| Initializes this object. | |
| def | ipv6_string_to_headers |
| Converts an IPv6 string into IPv6 headers. | |
| def | ipv6_headers_to_string |
| Converts IPv6 headers into an IPv6 string. | |
| def | lowpan_string_to_headers |
| Converts a lowpan string into lowpan headers. | |
| def | lowpan_headers_to_string |
| Converts lowpan headers into an lowpan string. | |
Public Attributes | |
| username | |
| log | |
Converts IPv6 and 6LoWPAN packets between strings and header dictionnaries.
| def Lowpan.Converter.Converter.__init__ | ( | self, | |
| username | |||
| ) |
Initializes this object.
| username | The name of the user this instance works for. |
| def Lowpan.Converter.Converter.ipv6_string_to_headers | ( | self, | |
| ipv6_string | |||
| ) |
Converts an IPv6 string into IPv6 headers.
The resulting headers are a dictionary which can contain the following fields:
| ipv6_string | A string of bytes, starting at the first byte of the IPv6 header ending at the last byte of the payload. |
| def Lowpan.Converter.Converter.ipv6_headers_to_string | ( | self, | |
| ipv6_headers | |||
| ) |
Converts IPv6 headers into an IPv6 string.
| ipv6_headers | IPv6 headers. |
| def Lowpan.Converter.Converter.lowpan_string_to_headers | ( | self, | |
| lowpan_string | |||
| ) |
Converts a lowpan string into lowpan headers.
The resulting headers are a dictionary which can contain the following fields:
| lowpan_string | A string of bytes, starting at the first byte of the lowpan header ending at the last byte of the payload. |
| def Lowpan.Converter.Converter.lowpan_headers_to_string | ( | self, | |
| lowpan_headers | |||
| ) |
Converts lowpan headers into an lowpan string.
| lowpan_headers | LoWPAN headers. |