diff options
author | Julius Volz <juliusv@google.com> | 2008-09-02 09:55:43 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-04 21:17:08 -0400 |
commit | 28364a59f3dfe7fed3560ec7aff9b7aeb02824fb (patch) | |
tree | 88b14c8c4d48c5ae538d7d7defe33272498aaebd /include/net/ip_vs.h | |
parent | 0bbdd42b7efa66685b6d74701bcde3a596a3a59d (diff) |
IPVS: Extend functions for getting/creating connections
Extend functions for getting/creating connections and connection
templates for IPv6 support and fix the callers.
Signed-off-by: Julius Volz <juliusv@google.com>
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 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index c173f1a7de2c..26893499eb6f 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -642,11 +642,16 @@ enum { | |||
642 | }; | 642 | }; |
643 | 643 | ||
644 | extern struct ip_vs_conn *ip_vs_conn_in_get | 644 | extern struct ip_vs_conn *ip_vs_conn_in_get |
645 | (int protocol, __be32 s_addr, __be16 s_port, __be32 d_addr, __be16 d_port); | 645 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, |
646 | const union nf_inet_addr *d_addr, __be16 d_port); | ||
647 | |||
646 | extern struct ip_vs_conn *ip_vs_ct_in_get | 648 | extern struct ip_vs_conn *ip_vs_ct_in_get |
647 | (int protocol, __be32 s_addr, __be16 s_port, __be32 d_addr, __be16 d_port); | 649 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, |
650 | const union nf_inet_addr *d_addr, __be16 d_port); | ||
651 | |||
648 | extern struct ip_vs_conn *ip_vs_conn_out_get | 652 | extern struct ip_vs_conn *ip_vs_conn_out_get |
649 | (int protocol, __be32 s_addr, __be16 s_port, __be32 d_addr, __be16 d_port); | 653 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, |
654 | const union nf_inet_addr *d_addr, __be16 d_port); | ||
650 | 655 | ||
651 | /* put back the conn without restarting its timer */ | 656 | /* put back the conn without restarting its timer */ |
652 | static inline void __ip_vs_conn_put(struct ip_vs_conn *cp) | 657 | static inline void __ip_vs_conn_put(struct ip_vs_conn *cp) |
@@ -657,8 +662,9 @@ extern void ip_vs_conn_put(struct ip_vs_conn *cp); | |||
657 | extern void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport); | 662 | extern void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport); |
658 | 663 | ||
659 | extern struct ip_vs_conn * | 664 | extern struct ip_vs_conn * |
660 | ip_vs_conn_new(int proto, __be32 caddr, __be16 cport, __be32 vaddr, __be16 vport, | 665 | ip_vs_conn_new(int af, int proto, const union nf_inet_addr *caddr, __be16 cport, |
661 | __be32 daddr, __be16 dport, unsigned flags, | 666 | const union nf_inet_addr *vaddr, __be16 vport, |
667 | const union nf_inet_addr *daddr, __be16 dport, unsigned flags, | ||
662 | struct ip_vs_dest *dest); | 668 | struct ip_vs_dest *dest); |
663 | extern void ip_vs_conn_expire_now(struct ip_vs_conn *cp); | 669 | extern void ip_vs_conn_expire_now(struct ip_vs_conn *cp); |
664 | 670 | ||