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>
This commit is contained in:

committed by
David S. Miller

parent
0f935dbedc
commit
802885fc04
@@ -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);
|
||||
|
Reference in New Issue
Block a user