summaryrefslogtreecommitdiffstats
path: root/net/dccp/dccp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 07:39:22 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-25 13:00:39 -0700
commit802885fc0400d0166a6b65d1844b61696aecbb10 (patch)
tree7f6e6d083adf632704d496642eab95ad3c969e93 /net/dccp/dccp.h
parent0f935dbedc49a5044ebff08b47eef35a2f2bbe92 (diff)
downloadlinux-0-day-802885fc0400d0166a6b65d1844b61696aecbb10.tar.gz
linux-0-day-802885fc0400d0166a6b65d1844b61696aecbb10.tar.xz
dccp: constify dccp_make_response() socket argument
Like tcp_make_synack() the only time we might change the socket is when calling sock_wmalloc(), which is using atomic operation to update sk->sk_wmem_alloc Also use MAX_DCCP_HEADER as both IPv4/IPv6 use this value for max_header. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r--net/dccp/dccp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h
index bebc735f5afc0..31e96df500d12 100644
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -293,7 +293,7 @@ int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized);
void dccp_destroy_sock(struct sock *sk);
void dccp_close(struct sock *sk, long timeout);
-struct sk_buff *dccp_make_response(struct sock *sk, struct dst_entry *dst,
+struct sk_buff *dccp_make_response(const struct sock *sk, struct dst_entry *dst,
struct request_sock *req);
int dccp_connect(struct sock *sk);