]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/ipv6/xfrm6_policy.c
xfrm: simplify xfrm_address_t use
authorJiri Benc <jbenc@redhat.com>
Sun, 29 Mar 2015 14:59:24 +0000 (16:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 17:58:35 +0000 (13:58 -0400)
commit15e318bdc6dfb82914c82fb7ad00badaa8387d8e
treeb032216e906107641f907389ce3d5f68a0139ab1
parent8f55db48608b109ad8c7ff4b946ad39b3189a540
xfrm: simplify xfrm_address_t use

In many places, the a6 field is typecasted to struct in6_addr. As the
fields are in union anyway, just add in6_addr type to the union and
get rid of the typecasting.

Modifying the uapi header is okay, the union has still the same size.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
include/uapi/linux/xfrm.h
net/ipv6/xfrm6_mode_beet.c
net/ipv6/xfrm6_policy.c
net/key/af_key.c
net/xfrm/xfrm_state.c