Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MACsec (macsec)

Reached from

Lower layerSelectorValue
ethernet2ethertype35045 (0x88e5)
dot1qethertype35045 (0x88e5)

Fields

FieldTypeDefaultAutoDescription
vuint(1)0TCI V bit: version (0).
esuint(1)0TCI ES bit: End Station (the SCI is the source MAC address with port 1).
scuint(1)Number of items of sciTCI SC bit: an explicit SCI is present (Auto: set when the SCI is given).
scbuint(1)0TCI SCB bit: EPON single copy broadcast.
euint(1)1TCI E bit: the secure data is encrypted.
cuint(1)1TCI C bit: the user data was changed (always with E for the default cipher suites).
anuint(2)0Association number (0-3): the secure association within the channel.
reserveduint(2)0
sluint(6)0Short length: the secure data length when it is below 48 octets, otherwise 0 (Manual).
pnuint(32)1Packet number (32 bits, the low half with XPN).
scilist<struct> — sc items1 itemsSecure Channel Identifier: system identifier (MAC address) and port identifier; present when SC is set.
secure_databytes — rest of the PDU except its last 16 octets00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2fSecure data: the encrypted (or integrity-only) user data as opaque octets; nothing is encrypted.
icvbytes(16)00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00Integrity Check Value (16 octets), opaque: it is not computed.

sci

Each item is a group of the fields below.

FieldTypeDefaultAutoDescription
system_identifiermac02:00:00:00:00:01
port_identifieruint(16)1

Constraints

LevelRule
warningv = 0
warningpn ≠ 0

Sample templates

  • macsec — templates/protocols/l2/macsec.wpg.yaml