diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-08 14:34:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-08 14:34:22 -0700 |
commit | 77357a95522ba645bbfd65253b34317c824103f9 (patch) | |
tree | 63eb29d2efad915add7693445a215eef890c4191 /include/net/inet_connection_sock.h | |
parent | 8663c938ceb72f47941c95ff0ea491ebbdd68f26 (diff) | |
download | linux-77357a95522ba645bbfd65253b34317c824103f9.tar.gz linux-77357a95522ba645bbfd65253b34317c824103f9.tar.bz2 linux-77357a95522ba645bbfd65253b34317c824103f9.zip |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index 6ac4e3b5007f..4367d913c0e2 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, |