ipvs: Supply destination addr family to ip_vs_{lookup_dest,find_dest}
We need to remove the assumption that virtual address family is the same as real address family in order to support heterogeneous services (that is, services with v4 vips and v6 backends or the opposite). Signed-off-by: Alex Gartrell <agartrell@fb.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
committed by
Simon Horman
parent
6cff339bbd
commit
655eef103d
+3
-2
@@ -1399,8 +1399,9 @@ void ip_vs_unregister_nl_ioctl(void);
|
||||
int ip_vs_control_init(void);
|
||||
void ip_vs_control_cleanup(void);
|
||||
struct ip_vs_dest *
|
||||
ip_vs_find_dest(struct net *net, int af, const union nf_inet_addr *daddr,
|
||||
__be16 dport, const union nf_inet_addr *vaddr, __be16 vport,
|
||||
ip_vs_find_dest(struct net *net, int svc_af, int dest_af,
|
||||
const union nf_inet_addr *daddr, __be16 dport,
|
||||
const union nf_inet_addr *vaddr, __be16 vport,
|
||||
__u16 protocol, __u32 fwmark, __u32 flags);
|
||||
void ip_vs_try_bind_dest(struct ip_vs_conn *cp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user