the maximum possible ICV length in a MACsec frame is 16 octects, not 32:
fix get_icvlen() accordingly, so that a proper error message is displayed
in case input 'icvlen' is greater than 16.
Signed-off-by: Davide Caratti <redacted>
---
ip/ipmacsec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -152,9 +152,9 @@ static void get_icvlen(__u8 *icvlen, char *arg)if(ret)invarg("expected ICV length",arg);-if(*icvlen<MACSEC_MIN_ICV_LEN||*icvlen>MACSEC_MAX_ICV_LEN)+if(*icvlen<MACSEC_MIN_ICV_LEN||*icvlen>MACSEC_STD_ICV_LEN)invarg("ICV length must be in the range {"-STR(MACSEC_MIN_ICV_LEN)".."STR(MACSEC_MAX_ICV_LEN)+STR(MACSEC_MIN_ICV_LEN)".."STR(MACSEC_STD_ICV_LEN)"}",arg);}
From: Phil Sutter <phil@nwl.cc> Date: 2016-09-09 14:15:46
On Fri, Sep 09, 2016 at 04:02:22PM +0200, Davide Caratti wrote:
the maximum possible ICV length in a MACsec frame is 16 octects, not 32:
fix get_icvlen() accordingly, so that a proper error message is displayed
in case input 'icvlen' is greater than 16.
Signed-off-by: Davide Caratti <redacted>
the maximum possible ICV length in a MACsec frame is 16 octects, not 32:
fix get_icvlen() accordingly, so that a proper error message is displayed
in case input 'icvlen' is greater than 16.
Signed-off-by: Davide Caratti <redacted>
the maximum possible ICV length in a MACsec frame is 16 octects, not 32:
fix get_icvlen() accordingly, so that a proper error message is displayed
in case input 'icvlen' is greater than 16.
Signed-off-by: Davide Caratti <redacted>