| Low-Power Border Router

- Main Page
- Packages
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes

# Lowpan.PacketCompressor.PacketCompressor Class Reference

Compressor/Decompressor for 6LoWPAN packets. More...

List of all members.

## 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

## Detailed Description

Compressor/Decompressor for 6LoWPAN packets.

## Constructor & Destructor Documentation

def Lowpan.PacketCompressor.PacketCompressor.__init__ | ( |  | self,
|  |  | username,
|  |  | prefixS
| ) |  |

Initializes this object.

Parameters:

  username | The name of the user this instance works for.
  prefixS | The IPv6 prefix of the network.

## Member Function Documentation

def Lowpan.PacketCompressor.PacketCompressor.ipv6_headers_to_lowpan_headers | ( |  | self,
|  |  | ipv6_headers
| ) |  |

Compacts IPv6 headers into a 6LoWPAN headers.

Parameters:

  ipv6_headers | The IPv6 packet to be compacted.

Returns:
  The computed 6LoWPAN packet, in headers format.

def Lowpan.PacketCompressor.PacketCompressor.lowpan_headers_to_ipv6_headers | ( |  | self,
|  |  | lowpan_headers,
|  |  | MACsrc_addrS
| ) |  |

Inflates 6LoWPAN headers into IPv6 headers.

Parameters:

  lowpan_headers | The IPv6 packet to be compacted.
  MACsrc_addrS | MAC address of the mote this packets originates from.

Returns:
  The computed IPv6 packet, in headers format

## Member Data Documentation

Lowpan.PacketCompressor.PacketCompressor.username

Lowpan.PacketCompressor.PacketCompressor.prefixS

Lowpan.PacketCompressor.PacketCompressor.addressCompressor

Lowpan.PacketCompressor.PacketCompressor.log