aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r--net/dccp/ipv4.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index 84c05405984e..b56a2fa2694a 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -366,8 +366,7 @@ void dccp_v4_send_check(struct sock *sk, int unused, struct sk_buff *skb)
366 366
367EXPORT_SYMBOL_GPL(dccp_v4_send_check); 367EXPORT_SYMBOL_GPL(dccp_v4_send_check);
368 368
369static inline u64 dccp_v4_init_sequence(const struct sock *sk, 369static inline u64 dccp_v4_init_sequence(const struct sk_buff *skb)
370 const struct sk_buff *skb)
371{ 370{
372 return secure_dccp_sequence_number(skb->nh.iph->daddr, 371 return secure_dccp_sequence_number(skb->nh.iph->daddr,
373 skb->nh.iph->saddr, 372 skb->nh.iph->saddr,
@@ -663,7 +662,7 @@ int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
663 */ 662 */
664 dreq = dccp_rsk(req); 663 dreq = dccp_rsk(req);
665 dreq->dreq_isr = dcb->dccpd_seq; 664 dreq->dreq_isr = dcb->dccpd_seq;
666 dreq->dreq_iss = dccp_v4_init_sequence(sk, skb); 665 dreq->dreq_iss = dccp_v4_init_sequence(skb);
667 dreq->dreq_service = service; 666 dreq->dreq_service = service;
668 667
669 if (dccp_v4_send_response(sk, req, NULL)) 668 if (dccp_v4_send_response(sk, req, NULL))