summaryrefslogtreecommitdiffstats
path: root/include/net/request_sock.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-12-21 21:29:24 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-22 23:03:05 +0100
commitb1f0a0e99c58fbd7ea053ca36ba623718272b618 (patch)
tree17c6d02cc97346088f6c5675234b69a485335a36 /include/net/request_sock.h
parentmlxsw: core: Use devm_kzalloc to allocate mlxsw_hwmon structure (diff)
downloadlinux-b1f0a0e99c58fbd7ea053ca36ba623718272b618.tar.xz
linux-b1f0a0e99c58fbd7ea053ca36ba623718272b618.zip
net: add inet_sk_transparent() helper
Avoids cluttering tcp_v4_send_reset when followup patch extends it to deal with timewait sockets. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Eric Dumazet <edumazet@google.com> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r--include/net/request_sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h
index a0dde04eb178..f49759decb28 100644
--- a/include/net/request_sock.h
+++ b/include/net/request_sock.h
@@ -68,7 +68,7 @@ struct request_sock {
u32 peer_secid;
};
-static inline struct request_sock *inet_reqsk(struct sock *sk)
+static inline struct request_sock *inet_reqsk(const struct sock *sk)
{
return (struct request_sock *)sk;
}