diff options
author | Julius Volz <juliusv@google.com> | 2008-09-02 15:55:33 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-05 11:17:03 +1000 |
commit | e7ade46a53055c19a01c8becbe7807f9075d6fee (patch) | |
tree | 8e75c543dbf015d0f1056941526e9671a1afc780 /net/ipv4/ipvs/ip_vs_sync.c | |
parent | fab0de02fb0da83b90cec7fce4294747d86d5c6f (diff) | |
download | linux-e7ade46a53055c19a01c8becbe7807f9075d6fee.tar.gz linux-e7ade46a53055c19a01c8becbe7807f9075d6fee.tar.bz2 linux-e7ade46a53055c19a01c8becbe7807f9075d6fee.zip |
IPVS: Change IPVS data structures to support IPv6 addresses
Introduce new 'af' fields into IPVS data structures for specifying an
entry's address family. Convert IP addresses to be of type union
nf_inet_addr.
Signed-off-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/ipv4/ipvs/ip_vs_sync.c')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/ipvs/ip_vs_sync.c b/net/ipv4/ipvs/ip_vs_sync.c index a652da2c3200..2cf47b2e1669 100644 --- a/net/ipv4/ipvs/ip_vs_sync.c +++ b/net/ipv4/ipvs/ip_vs_sync.c @@ -256,9 +256,9 @@ void ip_vs_sync_conn(struct ip_vs_conn *cp) s->cport = cp->cport; s->vport = cp->vport; s->dport = cp->dport; - s->caddr = cp->caddr; - s->vaddr = cp->vaddr; - s->daddr = cp->daddr; + s->caddr = cp->caddr.ip; + s->vaddr = cp->vaddr.ip; + s->daddr = cp->daddr.ip; s->flags = htons(cp->flags & ~IP_VS_CONN_F_HASHED); s->state = htons(cp->state); if (cp->flags & IP_VS_CONN_F_SEQ_MASK) { |