summaryrefslogtreecommitdiffstats
path: root/include/linux-private
diff options
context:
space:
mode:
authorDavide Caratti <dcaratti@redhat.com>2016-09-05 18:20:16 +0200
committerDavide Caratti <dcaratti@redhat.com>2016-09-05 18:38:27 +0200
commit6cfe71ef151825681b9106ef34d2346dc94fa1b3 (patch)
treef78225c9bae295448c4cad9db3fcd32aa7366e30 /include/linux-private
parentcd758fbfee07768ff200f46d7090fa8d0e6b300f (diff)
downloadplatform_external_libnl-6cfe71ef151825681b9106ef34d2346dc94fa1b3.tar.gz
platform_external_libnl-6cfe71ef151825681b9106ef34d2346dc94fa1b3.tar.bz2
platform_external_libnl-6cfe71ef151825681b9106ef34d2346dc94fa1b3.zip
macsec: fix maximum ICV length
Update copy of kernel header 'if_macsec.h' to Linux 4.8-rc5, so that upstream commit 2ccbe2cb79f2f74ab739252299b6f9ff27586f2c ("macsec: limit ICV length to 16 octets") is included. Return -NLE_INVAL when trying to configure an ICV length greater than 16 octets. Signed-off-by: Davide Caratti <davide.caratti@gmail.com>
Diffstat (limited to 'include/linux-private')
-rw-r--r--include/linux-private/linux/if_macsec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux-private/linux/if_macsec.h b/include/linux-private/linux/if_macsec.h
index cbd4faa..22939a3 100644
--- a/include/linux-private/linux/if_macsec.h
+++ b/include/linux-private/linux/if_macsec.h
@@ -26,6 +26,8 @@
#define MACSEC_MIN_ICV_LEN 8
#define MACSEC_MAX_ICV_LEN 32
+/* upper limit for ICV length as recommended by IEEE802.1AE-2006 */
+#define MACSEC_STD_ICV_LEN 16
enum macsec_attrs {
MACSEC_ATTR_UNSPEC,