diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-12-14 02:22:54 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 16:10:46 -0500 |
commit | b9750ce13c08aa8a71a9b138d741f3046aefd991 (patch) | |
tree | 08b2b842ece908bf63c104bbcb12e8b78c69288d /include | |
parent | 830a1e5c212fb3fdc83b66359c780c3b3a294897 (diff) |
[IPV6]: Generalise some functions
Using sk->sk_protocol instead of IPPROTO_TCP.
Will be used by DCCPv6 in the next changesets.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipv6.h | 2 | ||||
-rw-r--r-- | include/net/inet6_connection_sock.h | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 7d3e86d9576e..69a0decfbdf4 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
@@ -297,6 +297,8 @@ struct tcp6_sock { | |||
297 | struct ipv6_pinfo inet6; | 297 | struct ipv6_pinfo inet6; |
298 | }; | 298 | }; |
299 | 299 | ||
300 | extern int inet6_sk_rebuild_header(struct sock *sk); | ||
301 | |||
300 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 302 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) |
301 | static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk) | 303 | static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk) |
302 | { | 304 | { |
diff --git a/include/net/inet6_connection_sock.h b/include/net/inet6_connection_sock.h index aa30ebde70dc..b33b438bffcc 100644 --- a/include/net/inet6_connection_sock.h +++ b/include/net/inet6_connection_sock.h | |||
@@ -15,8 +15,15 @@ | |||
15 | 15 | ||
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | 17 | ||
18 | struct sock; | 18 | struct in6_addr; |
19 | struct inet_bind_bucket; | ||
19 | struct request_sock; | 20 | struct request_sock; |
21 | struct sk_buff; | ||
22 | struct sock; | ||
23 | struct sockaddr; | ||
24 | |||
25 | extern int inet6_csk_bind_conflict(const struct sock *sk, | ||
26 | const struct inet_bind_bucket *tb); | ||
20 | 27 | ||
21 | extern struct request_sock *inet6_csk_search_req(const struct sock *sk, | 28 | extern struct request_sock *inet6_csk_search_req(const struct sock *sk, |
22 | struct request_sock ***prevp, | 29 | struct request_sock ***prevp, |
@@ -28,4 +35,8 @@ extern struct request_sock *inet6_csk_search_req(const struct sock *sk, | |||
28 | extern void inet6_csk_reqsk_queue_hash_add(struct sock *sk, | 35 | extern void inet6_csk_reqsk_queue_hash_add(struct sock *sk, |
29 | struct request_sock *req, | 36 | struct request_sock *req, |
30 | const unsigned long timeout); | 37 | const unsigned long timeout); |
38 | |||
39 | extern void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr); | ||
40 | |||
41 | extern int inet6_csk_xmit(struct sk_buff *skb, int ipfragok); | ||
31 | #endif /* _INET6_CONNECTION_SOCK_H */ | 42 | #endif /* _INET6_CONNECTION_SOCK_H */ |