summaryrefslogtreecommitdiffstats
path: root/include/net/inet6_connection_sock.h
diff options
context:
space:
mode:
authorNeal Cardwell <ncardwell@google.com>2012-06-28 14:34:19 +0200
committerDavid S. Miller <davem@davemloft.net>2012-06-29 02:53:50 +0200
commit3840a06e6046aaee95f33a120499d2dc8c054b9d (patch)
tree6a6acc85ad10729f25b4f3ac81f46facf03b978d /include/net/inet6_connection_sock.h
parenttcp: fix inet6_csk_route_req() for link-local addresses (diff)
downloadlinux-3840a06e6046aaee95f33a120499d2dc8c054b9d.tar.xz
linux-3840a06e6046aaee95f33a120499d2dc8c054b9d.zip
tcp: pass fl6 to inet6_csk_route_req()
This commit changes inet_csk_route_req() so that it uses a pointer to a struct flowi6, rather than allocating its own on the stack. This brings its behavior in line with its IPv4 cousin, inet_csk_route_req(), and allows a follow-on patch to fix a dst leak. Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet6_connection_sock.h')
-rw-r--r--include/net/inet6_connection_sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet6_connection_sock.h b/include/net/inet6_connection_sock.h
index 1866a676c810..df2a857e853d 100644
--- a/include/net/inet6_connection_sock.h
+++ b/include/net/inet6_connection_sock.h
@@ -26,6 +26,7 @@ extern int inet6_csk_bind_conflict(const struct sock *sk,
const struct inet_bind_bucket *tb, bool relax);
extern struct dst_entry* inet6_csk_route_req(struct sock *sk,
+ struct flowi6 *fl6,
const struct request_sock *req);
extern struct request_sock *inet6_csk_search_req(const struct sock *sk,