diff options
author | Alex Gartrell <agartrell@fb.com> | 2014-09-10 01:40:20 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-09-16 02:03:33 +0200 |
commit | 6cff339bbd5f9eda7a5e8a521f91a88d046e6d0c (patch) | |
tree | 7098d7f00a946c526aa5a7b564c586af00065584 /include/net/ip_vs.h | |
parent | ipvs: Add simple weighted failover scheduler (diff) | |
download | linux-6cff339bbd5f9eda7a5e8a521f91a88d046e6d0c.tar.xz linux-6cff339bbd5f9eda7a5e8a521f91a88d046e6d0c.zip |
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>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 624a8a54806d..b7e2b624d58e 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -648,6 +648,9 @@ struct ip_vs_dest_user_kern { /* thresholds for active connections */ u32 u_threshold; /* upper threshold */ u32 l_threshold; /* lower threshold */ + + /* Address family of addr */ + u16 af; }; |