summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2004-07-20 17:16:36 +0900
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2004-07-20 17:16:36 +0900
commit587451ba8b58fde2c368de23ef62588065c77c6c (patch)
tree38d779bc0b0db137d5a583923d30bf76b0053eb7 /include
parent1bb0fa189c6ae75cbf440244ae77a8ede9912df1 (diff)
[IPV4] Look up route with appropriate protocol when we connect().
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip.h3
-rw-r--r--include/net/ipv6.h3
-rw-r--r--include/net/udp.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index ad6b2be1c028..70bb6f887988 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -109,6 +109,9 @@ extern ssize_t ip_append_page(struct sock *sk, struct page *page,
extern int ip_push_pending_frames(struct sock *sk);
extern void ip_flush_pending_frames(struct sock *sk);
+/* datagram.c */
+extern int ip4_datagram_connect(struct sock *sk,
+ struct sockaddr *uaddr, int addr_len);
/*
* Map a multicast IP onto multicast MAC for type Token Ring.
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 8f647ae8e732..034cf3084a77 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -406,6 +406,9 @@ extern void ipv6_packet_init(void);
extern void ipv6_packet_cleanup(void);
+extern int ip6_datagram_connect(struct sock *sk,
+ struct sockaddr *addr, int addr_len);
+
extern int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len);
extern void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, u16 port,
u32 info, u8 *payload);
diff --git a/include/net/udp.h b/include/net/udp.h
index 12d5d7ef62e8..2ef99a71bc30 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -64,8 +64,6 @@ extern struct proto udp_prot;
extern void udp_err(struct sk_buff *, u32);
-extern int udp_connect(struct sock *sk,
- struct sockaddr *usin, int addr_len);
extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk,
struct msghdr *msg, size_t len);