mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4c7e622ddf
commit
a00e74442b
7 changed files with 14 additions and 14 deletions
|
|
@ -229,7 +229,7 @@ void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb);
|
|||
int dccp_retransmit_skb(struct sock *sk);
|
||||
|
||||
void dccp_send_ack(struct sock *sk);
|
||||
void dccp_reqsk_send_ack(struct sock *sk, struct sk_buff *skb,
|
||||
void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
|
||||
struct request_sock *rsk);
|
||||
|
||||
void dccp_send_sync(struct sock *sk, const u64 seq,
|
||||
|
|
|
|||
|
|
@ -527,7 +527,7 @@ out:
|
|||
return err;
|
||||
}
|
||||
|
||||
static void dccp_v4_ctl_send_reset(struct sock *sk, struct sk_buff *rxskb)
|
||||
static void dccp_v4_ctl_send_reset(const struct sock *sk, struct sk_buff *rxskb)
|
||||
{
|
||||
int err;
|
||||
const struct iphdr *rxiph;
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ static void dccp_v6_reqsk_destructor(struct request_sock *req)
|
|||
kfree_skb(inet_rsk(req)->pktopts);
|
||||
}
|
||||
|
||||
static void dccp_v6_ctl_send_reset(struct sock *sk, struct sk_buff *rxskb)
|
||||
static void dccp_v6_ctl_send_reset(const struct sock *sk, struct sk_buff *rxskb)
|
||||
{
|
||||
const struct ipv6hdr *rxip6h;
|
||||
struct sk_buff *skb;
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ int dccp_child_process(struct sock *parent, struct sock *child,
|
|||
|
||||
EXPORT_SYMBOL_GPL(dccp_child_process);
|
||||
|
||||
void dccp_reqsk_send_ack(struct sock *sk, struct sk_buff *skb,
|
||||
void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
|
||||
struct request_sock *rsk)
|
||||
{
|
||||
DCCP_BUG("DCCP-ACK packets are never sent in LISTEN/RESPOND state");
|
||||
|
|
|
|||
Loading…
Reference in a new issue