History

macsec: limit ICV length to 16 octets

IEEE 802.1AE-2006 standard recommends that the ICV element in a MACsec frame should not exceed 16 octets: add MACSEC_STD_ICV_LEN in uapi definitions accordingly, and avoid accepting configurations where the ICV length exceeds the standard value. Leave definition of MACSEC_MAX_ICV_LEN unchanged for backwards compatibility with userspace programs.

Davide Caratti committed 10 years ago

Commit 2ccbe2c1 parent baedbe52 files · +4 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_macsec.h+2−0
@@ -26,6 +26,8 @@ · 25 unmodified lines
2626
2727 #define MACSEC_MIN_ICV_LEN 8
2828 #define MACSEC_MAX_ICV_LEN 32
29+/* upper limit for ICV length as recommended by IEEE802.1AE-2006 */
30+#define MACSEC_STD_ICV_LEN 16
2931
3032 enum macsec_attrs {
3133 MACSEC_ATTR_UNSPEC,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t