Low-Power Border Router

Lowpan.Lowpan.Lowpan Class Reference

Conversion between IPv6 and LoWPAN packets. More...

List of all members.

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

Detailed Description

Conversion between IPv6 and LoWPAN packets.


Constructor & Destructor Documentation

def Lowpan.Lowpan.Lowpan.__init__ (   self,
  username,
  prefix_hexString 
)

Initializes this object.

Parameters:
usernameThe name of the user this instance works for.
prefix_hexStringThe IPv6 prefix of the network, written as 'aaaa:bbbb:cccc:dddd'.

Member Function Documentation

def Lowpan.Lowpan.Lowpan.ipv6_string_to_lowpan_string (   self,
  ipv6_string 
)

Compacts an IPv6 packet into a 6LoWPAN packet.

Parameters:
ipv6_stringThe IPv6 packet to be compacted.
Returns:
The computed 6LoWPAN packet.
def Lowpan.Lowpan.Lowpan.lowpan_string_to_ipv6_string (   self,
  lowpan_string,
  macSrcAddrS 
)

Compacts an IPv6 packet into a 6LoWPAN packet.

Parameters:
lowpan_stringThe 6LoWPAN packet.
macSrcAddrSThe MAC address of the mote the packet originated from.
Returns:
The computed IPv6 packet.

Member Data Documentation