mirror of
https://github.com/suyu-emu/horinux.git
synced 2026-09-21 14:15:21 -07: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 <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4c7e622ddf
commit
a00e74442b
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user