MCPcopy Create free account
hub / github.com/secdev/scapy / MKABasicParamSet

Class MKABasicParamSet

scapy/layers/eap.py:587–623  ·  view source on GitHub ↗

Basic Parameter Set (802.1X-2010, section 11.11).

Source from the content-addressed store, hash-verified

585
586
587class MKABasicParamSet(Packet):
588 """
589 Basic Parameter Set (802.1X-2010, section 11.11).
590 """
591
592 #########################################################################
593 #
594 # IEEE 802.1X-2010 standard
595 # Section 11.11
596 #########################################################################
597 #
598
599 name = "Basic Parameter Set"
600 fields_desc = [
601 ByteField("mka_version_id", 0),
602 ByteField("key_server_priority", 0),
603 BitField("key_server", 0, 1),
604 BitField("macsec_desired", 0, 1),
605 BitField("macsec_capability", 0, 2),
606 BitField("param_set_body_len", 0, 12),
607 PacketField("SCI", MACsecSCI(), MACsecSCI),
608 XStrFixedLenField("actor_member_id", "", length=12),
609 XIntField("actor_message_number", 0),
610 XIntField("algorithm_agility", 0),
611 PadField(
612 XStrLenField(
613 "cak_name",
614 "",
615 length_from=lambda pkt: (pkt.param_set_body_len - 28)
616 ),
617 4,
618 padwith=b"\x00"
619 )
620 ]
621
622 def extract_padding(self, s):
623 return "", s
624
625
626class MKAPeerListTuple(Packet):

Callers

nothing calls this directly

Calls 8

ByteFieldClass · 0.90
BitFieldClass · 0.90
PacketFieldClass · 0.90
XStrFixedLenFieldClass · 0.90
XIntFieldClass · 0.90
PadFieldClass · 0.90
XStrLenFieldClass · 0.90
MACsecSCIClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…