ipvs: Add destination address family to netlink interface
authorAlex Gartrell <agartrell@fb.com>
Tue, 9 Sep 2014 23:40:20 +0000 (16:40 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 16 Sep 2014 00:03:33 +0000 (09:03 +0900)
commit6cff339bbd5f9eda7a5e8a521f91a88d046e6d0c
tree7098d7f00a946c526aa5a7b564c586af00065584
parent616a9be25cb9516e546c0de55d61e1e46e54ade9
ipvs: Add destination address family to netlink interface

This is necessary to support heterogeneous pools.  For example, if you have
an ipv6 addressed network, you'll want to be able to forward ipv4 traffic
into it.

This patch enforces that destination address family is the same as service
family, as none of the forwarding mechanisms support anything else.

For the old setsockopt mechanism, we simply set the dest address family to
AF_INET as we do with the service.

Signed-off-by: Alex Gartrell <agartrell@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
include/uapi/linux/ip_vs.h
net/netfilter/ipvs/ip_vs_ctl.c