diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-29 10:42:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 19:53:07 -0400 |
commit | a00e74442bac5ad19a929d097370da7e07540ea6 (patch) | |
tree | 22e3c0c3f94dfce499a3ab3ff567c59e5432c3b5 /net/ipv4/tcp_ipv4.c | |
parent | 4c7e622ddf07388d72e15b97a88d260a5a168e37 (diff) |
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 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index a23ba7daecbf..4300d0132b9f 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -576,7 +576,7 @@ EXPORT_SYMBOL(tcp_v4_send_check); | |||
576 | * Exception: precedence violation. We do not implement it in any case. | 576 | * Exception: precedence violation. We do not implement it in any case. |
577 | */ | 577 | */ |
578 | 578 | ||
579 | static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb) | 579 | static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb) |
580 | { | 580 | { |
581 | const struct tcphdr *th = tcp_hdr(skb); | 581 | const struct tcphdr *th = tcp_hdr(skb); |
582 | struct { | 582 | struct { |
@@ -795,7 +795,7 @@ static void tcp_v4_timewait_ack(struct sock *sk, struct sk_buff *skb) | |||
795 | inet_twsk_put(tw); | 795 | inet_twsk_put(tw); |
796 | } | 796 | } |
797 | 797 | ||
798 | static void tcp_v4_reqsk_send_ack(struct sock *sk, struct sk_buff *skb, | 798 | static void tcp_v4_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, |
799 | struct request_sock *req) | 799 | struct request_sock *req) |
800 | { | 800 | { |
801 | /* sk->sk_state == TCP_LISTEN -> for regular TCP_SYN_RECV | 801 | /* sk->sk_state == TCP_LISTEN -> for regular TCP_SYN_RECV |