]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Use ipv6_authlen for len in ipv6_skip_exthdr
authorXiang Gao <qasdfgtyuiop@gmail.com>
Wed, 20 Sep 2017 16:18:17 +0000 (12:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 20:45:18 +0000 (13:45 -0700)
commitca15b699a38ea6ae648df69b872107bbb41649b5
tree69c5ae532cdbbec055b57c4a2d6bc74238e8f8f3
parent2f16dddedb4ccefce529994c3f9e70da063d3325
ipv6: Use ipv6_authlen for len in ipv6_skip_exthdr

In ipv6_skip_exthdr, the lengh 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: Xiang Gao <qasdfgtyuiop@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs_core.c