]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Use ipv6_authlen for len
authoryangxingwu <xingwu.yang@gmail.com>
Wed, 10 Jul 2019 13:14:10 +0000 (21:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jul 2019 21:43:25 +0000 (14:43 -0700)
commit3379d9d59d85841a790f20e6676a34a73c8cc792
tree022663d29eb3e3629f3004d2b02c72deb2e89209
parentbe80696626492a8f7012bc1b7e8fc7ff60c25d6d
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>
net/ipv6/ah6.c
net/ipv6/exthdrs_core.c
net/ipv6/ip6_tunnel.c
net/ipv6/netfilter/ip6t_ah.c
net/ipv6/netfilter/ip6t_ipv6header.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/netfilter/nf_log_ipv6.c