summaryrefslogtreecommitdiffstats
path: root/include/net/request_sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-29 07:42:39 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-29 16:53:07 -0700
commita00e74442bac5ad19a929d097370da7e07540ea6 (patch)
tree22e3c0c3f94dfce499a3ab3ff567c59e5432c3b5 /include/net/request_sock.h
parent4c7e622ddf07388d72e15b97a88d260a5a168e37 (diff)
downloadlinux-a00e74442bac5ad19a929d097370da7e07540ea6.tar.gz
linux-a00e74442bac5ad19a929d097370da7e07540ea6.tar.bz2
linux-a00e74442bac5ad19a929d097370da7e07540ea6.zip
tcp/dccp: constify send_synack and send_reset socket argument
None of these functions need to change the socket, make it const. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r--include/net/request_sock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h
index 181f97f9fe1c..90247ec7955b 100644
--- a/include/net/request_sock.h
+++ b/include/net/request_sock.h
@@ -34,9 +34,9 @@ struct request_sock_ops {
char *slab_name;
int (*rtx_syn_ack)(const struct sock *sk,
struct request_sock *req);
- void (*send_ack)(struct sock *sk, struct sk_buff *skb,
+ void (*send_ack)(const struct sock *sk, struct sk_buff *skb,
struct request_sock *req);
- void (*send_reset)(struct sock *sk,
+ void (*send_reset)(const struct sock *sk,
struct sk_buff *skb);
void (*destructor)(struct request_sock *req);
void (*syn_ack_timeout)(const struct request_sock *req);