Basic Parameter Set (802.1X-2010, section 11.11).
| 585 | |
| 586 | |
| 587 | class 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 | |
| 626 | class MKAPeerListTuple(Packet): |
nothing calls this directly
no test coverage detected
searching dependent graphs…