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:yangxingwu <xingwu.yang@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/ipv6/ah6.c 2 additions, 2 deletionsnet/ipv6/ah6.c
- net/ipv6/exthdrs_core.c 1 addition, 1 deletionnet/ipv6/exthdrs_core.c
- net/ipv6/ip6_tunnel.c 1 addition, 1 deletionnet/ipv6/ip6_tunnel.c
- net/ipv6/netfilter/ip6t_ah.c 1 addition, 1 deletionnet/ipv6/netfilter/ip6t_ah.c
- net/ipv6/netfilter/ip6t_ipv6header.c 1 addition, 1 deletionnet/ipv6/netfilter/ip6t_ipv6header.c
- net/ipv6/netfilter/nf_conntrack_reasm.c 1 addition, 1 deletionnet/ipv6/netfilter/nf_conntrack_reasm.c
- net/ipv6/netfilter/nf_log_ipv6.c 1 addition, 1 deletionnet/ipv6/netfilter/nf_log_ipv6.c
Loading
Please register or sign in to comment