summaryrefslogtreecommitdiffstats
path: root/include/net/inet_connection_sock.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-08 14:34:22 -0700
committerDavid S. Miller <davem@davemloft.net>2011-05-08 14:34:22 -0700
commit77357a95522ba645bbfd65253b34317c824103f9 (patch)
tree63eb29d2efad915add7693445a215eef890c4191 /include/net/inet_connection_sock.h
parent8663c938ceb72f47941c95ff0ea491ebbdd68f26 (diff)
downloadop-kernel-dev-77357a95522ba645bbfd65253b34317c824103f9.zip
op-kernel-dev-77357a95522ba645bbfd65253b34317c824103f9.tar.gz
ipv4: Create inet_csk_route_child_sock().
This is just like inet_csk_route_req() except that it operates after we've created the new child socket. In this way we can use the new socket's cork flow for proper route key storage. This will be used by DCCP and TCP child socket creation handling. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r--include/net/inet_connection_sock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index 6ac4e3b..4367d91 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -250,6 +250,9 @@ extern int inet_csk_get_port(struct sock *sk, unsigned short snum);
extern struct dst_entry* inet_csk_route_req(struct sock *sk,
const struct request_sock *req);
+extern struct dst_entry* inet_csk_route_child_sock(struct sock *sk,
+ struct sock *newsk,
+ const struct request_sock *req);
static inline void inet_csk_reqsk_queue_add(struct sock *sk,
struct request_sock *req,
OpenPOWER on IntegriCloud