Re: [PATCH] ipv6: Use ipv6_authlen for len
From: David Miller
Date: Thu Jul 11 2019 - 17:43:44 EST
From: yangxingwu <xingwu.yang@xxxxxxxxx>
Date: Wed, 10 Jul 2019 21:14:10 +0800
> The length of AH header is computed manually as (hp->hdrlen+2)<<2.
> However, in include/linux/ipv6.h, a macro named ipv6_authlen is
> already defined for exactly the same job. This commit replaces
> the manual computation code with the macro.
> Signed-off-by: yangxingwu <xingwu.yang@xxxxxxxxx>