Modmacsec Module

class mtf.libs.mtf_pybinder.modmacsec.MACSEC

A Representation of the Macsec header

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: mtf.libs.mtf_pybinder.modmacsec.MACSEC) -> None

  2. __init__(self: mtf.libs.mtf_pybinder.modmacsec.MACSEC, arg0: list[int]) -> None

__new__(**kwargs)
property data
property ether_type

The Ether Type for the next protocol.

property icv
property name
property packet_nbr
property port
property short_length
property sys_id
property tci

TAG Control Information part of the MACSEC packet. This method returns a Tag ControlInformation object.

class mtf.libs.mtf_pybinder.modmacsec.TAGControlInformation
property AN

TCI AN bits

property C

TCI C bit

property E

TCI E bit

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: mtf.libs.mtf_pybinder.modmacsec.TAGControlInformation) -> None

  2. __init__(self: mtf.libs.mtf_pybinder.modmacsec.TAGControlInformation, arg0: list[int]) -> None

__new__(**kwargs)
property es

TCI es bit

property name

Gives you the name of the payload.

property sc

TCI sc bit

property scb

TCI scb bit

property ver

TCI ver bit

mtf.libs.mtf_pybinder.modmacsec.get_mod_macsec(arg0: mtf.libs.mtf_pybinder.pcpp.Packet) MACSEC

Gets a modmacsec.MACSEC from a pcpp.Packet

mtf.libs.mtf_pybinder.modmacsec.update_packet(arg0: mtf.libs.mtf_pybinder.pcpp.Packet, arg1: MACSEC) bool

Updates the pcpp Packet MACsec layer with the passed MACsec layer