Skip to content
Snippets Groups Projects
Commit 416e8126 authored by yangxingwu's avatar yangxingwu Committed by David S. Miller
Browse files

ipv6: Use ipv6_authlen for len


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: default avataryangxingwu <xingwu.yang@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 311633b6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment