chewie.auth_8021x module

This module provides a way to parse and pack and EAPOL Packet using Auth8021x

class chewie.auth_8021x.Auth8021x(version, packet_type, data)

Bases: object

basically a EAPOL packet

pack()

Pack up the EAPOL packet to bytes. Returns:

bytes

classmethod parse(packed_message)

construct an Auth8021x from a packed_message Args:

packed_message (bytes):

Returns:

Auth8021x

Raises:

MessageParseException: if packed_message cannot be parsed successfully.

chewie.auth_8021x.hwaddr_to_string(hwaddr)