Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f6ccf554
Commit
f6ccf554
authored
Aug 09, 2005
by
David S. Miller
Committed by
David S. Miller
Aug 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DCCP]: Fix u64 printf format warnings.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
1d3de414
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
14 deletions
+36
-14
net/dccp/input.c
net/dccp/input.c
+3
-1
net/dccp/ipv4.c
net/dccp/ipv4.c
+4
-2
net/dccp/minisocks.c
net/dccp/minisocks.c
+4
-1
net/dccp/options.c
net/dccp/options.c
+25
-10
No files found.
net/dccp/input.c
View file @
f6ccf554
...
...
@@ -274,7 +274,9 @@ static int dccp_rcv_request_sent_state_process(struct sock *sk,
if
(
!
between48
(
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
dp
->
dccps_awl
,
dp
->
dccps_awh
))
{
dccp_pr_debug
(
"invalid ackno: S.AWL=%llu, P.ackno=%llu, S.AWH=%llu
\n
"
,
dp
->
dccps_awl
,
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
dp
->
dccps_awh
);
(
unsigned
long
long
)
dp
->
dccps_awl
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
(
unsigned
long
long
)
dp
->
dccps_awh
);
goto
out_invalid_packet
;
}
...
...
net/dccp/ipv4.c
View file @
f6ccf554
...
...
@@ -1092,14 +1092,16 @@ int dccp_v4_rcv(struct sk_buff *skb)
dccp_packet_name
(
dh
->
dccph_type
),
NIPQUAD
(
skb
->
nh
.
iph
->
saddr
),
ntohs
(
dh
->
dccph_sport
),
NIPQUAD
(
skb
->
nh
.
iph
->
daddr
),
ntohs
(
dh
->
dccph_dport
),
DCCP_SKB_CB
(
skb
)
->
dccpd_seq
);
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_seq
);
if
(
dccp_packet_without_ack
(
skb
))
{
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
=
DCCP_PKT_WITHOUT_ACK_SEQ
;
dccp_pr_debug_cat
(
"
\n
"
);
}
else
{
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
=
dccp_hdr_ack_seq
(
skb
);
dccp_pr_debug_cat
(
", ack=%llu
\n
"
,
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
);
dccp_pr_debug_cat
(
", ack=%llu
\n
"
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
);
}
/* Step 2:
...
...
net/dccp/minisocks.c
View file @
f6ccf554
...
...
@@ -142,7 +142,10 @@ struct sock *dccp_check_req(struct sock *sk, struct sk_buff *skb,
/* Invalid ACK */
if
(
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
!=
dccp_rsk
(
req
)
->
dreq_iss
)
{
dccp_pr_debug
(
"Invalid ACK number: ack_seq=%llu, dreq_iss=%llu
\n
"
,
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
dccp_rsk
(
req
)
->
dreq_iss
);
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
(
unsigned
long
long
)
dccp_rsk
(
req
)
->
dreq_iss
);
goto
drop
;
}
...
...
net/dccp/options.c
View file @
f6ccf554
...
...
@@ -119,7 +119,9 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb)
opt_recv
->
dccpor_ack_vector_idx
=
value
-
options
;
dccp_pr_debug
(
"%sACK vector 0, len=%d, ack_ackno=%llu
\n
"
,
debug_prefix
,
len
,
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
);
debug_prefix
,
len
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
);
dccp_ackvector_print
(
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
value
,
len
);
dccp_ackpkts_check_rcv_ackvector
(
dp
->
dccps_hc_rx_ackpkts
,
sk
,
...
...
@@ -137,6 +139,7 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb)
dccp_pr_debug
(
"%sTIMESTAMP=%u, ackno=%llu
\n
"
,
debug_prefix
,
opt_recv
->
dccpor_timestamp
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
);
break
;
case
DCCPO_TIMESTAMP_ECHO
:
...
...
@@ -147,7 +150,9 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb)
dccp_pr_debug
(
"%sTIMESTAMP_ECHO=%u, len=%d, ackno=%llu, diff=%u
\n
"
,
debug_prefix
,
opt_recv
->
dccpor_timestamp_echo
,
len
+
2
,
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
len
+
2
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_ack_seq
,
tcp_time_stamp
-
opt_recv
->
dccpor_timestamp_echo
);
opt_recv
->
dccpor_elapsed_time
=
dccp_decode_value_var
(
value
+
4
,
len
-
4
);
...
...
@@ -308,7 +313,8 @@ void dccp_insert_option_elapsed_time(struct sock *sk,
dccp_pr_debug
(
"%sELAPSED_TIME=%u, len=%d, seqno=%llu
\n
"
,
debug_prefix
,
elapsed_time
,
len
,
DCCP_SKB_CB
(
skb
)
->
dccpd_seq
);
len
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_seq
);
}
EXPORT_SYMBOL
(
dccp_insert_option_elapsed_time
);
...
...
@@ -382,7 +388,8 @@ static void dccp_insert_option_ack_vector(struct sock *sk, struct sk_buff *skb)
dccp_pr_debug
(
"%sACK Vector 0, len=%d, ack_seqno=%llu, ack_ackno=%llu
\n
"
,
debug_prefix
,
ap
->
dccpap_ack_vector_len
,
ap
->
dccpap_ack_seqno
,
ap
->
dccpap_ack_ackno
);
(
unsigned
long
long
)
ap
->
dccpap_ack_seqno
,
(
unsigned
long
long
)
ap
->
dccpap_ack_ackno
);
}
static
inline
void
dccp_insert_option_timestamp
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
...
...
@@ -422,7 +429,8 @@ static void dccp_insert_option_timestamp_echo(struct sock *sk, struct sk_buff *s
dccp_pr_debug
(
"%sTIMESTAMP_ECHO=%u, len=%d, seqno=%llu
\n
"
,
debug_prefix
,
dp
->
dccps_timestamp_echo
,
len
,
DCCP_SKB_CB
(
skb
)
->
dccpd_seq
);
len
,
(
unsigned
long
long
)
DCCP_SKB_CB
(
skb
)
->
dccpd_seq
);
dp
->
dccps_timestamp_echo
=
0
;
dp
->
dccps_timestamp_time
=
0
;
...
...
@@ -607,7 +615,8 @@ int dccp_ackpkts_add(struct dccp_ackpkts *ap, u64 ackno, u8 state)
*/
if
(
state
==
DCCP_ACKPKTS_STATE_NOT_RECEIVED
&&
len
==
0
&&
delta
==
0
)
{
/* Found our reserved seat! */
dccp_pr_debug
(
"Found %llu reserved seat!
\n
"
,
ackno
);
dccp_pr_debug
(
"Found %llu reserved seat!
\n
"
,
(
unsigned
long
long
)
ackno
);
ap
->
dccpap_buf
[
index
]
=
state
;
goto
out
;
}
...
...
@@ -630,7 +639,8 @@ int dccp_ackpkts_add(struct dccp_ackpkts *ap, u64 ackno, u8 state)
out_duplicate:
/* Duplicate packet */
dccp_pr_debug
(
"Received a dup or already considered lost packet: %llu
\n
"
,
ackno
);
dccp_pr_debug
(
"Received a dup or already considered lost packet: %llu
\n
"
,
(
unsigned
long
long
)
ackno
);
return
-
EILSEQ
;
}
...
...
@@ -640,7 +650,8 @@ void dccp_ackvector_print(const u64 ackno, const unsigned char *vector, int len)
if
(
!
dccp_debug
)
return
;
printk
(
"ACK vector len=%d, ackno=%llu |"
,
len
,
ackno
);
printk
(
"ACK vector len=%d, ackno=%llu |"
,
len
,
(
unsigned
long
long
)
ackno
);
while
(
len
--
)
{
const
u8
state
=
(
*
vector
&
DCCP_ACKPKTS_STATE_MASK
)
>>
6
;
...
...
@@ -693,7 +704,8 @@ void dccp_ackpkts_check_rcv_ackno(struct dccp_ackpkts *ap, struct sock *sk,
#endif
dccp_pr_debug
(
"%sACK packet 0, len=%d, ack_seqno=%llu, ack_ackno=%llu, ACKED!
\n
"
,
debug_prefix
,
1
,
ap
->
dccpap_ack_seqno
,
ap
->
dccpap_ack_ackno
);
(
unsigned
long
long
)
ap
->
dccpap_ack_seqno
,
(
unsigned
long
long
)
ap
->
dccpap_ack_ackno
);
dccp_ackpkts_trow_away_ack_record
(
ap
);
ap
->
dccpap_ack_seqno
=
DCCP_MAX_SEQNO
+
1
;
}
...
...
@@ -745,7 +757,10 @@ static void dccp_ackpkts_check_rcv_ackvector(struct dccp_ackpkts *ap,
#endif
dccp_pr_debug
(
"%sACK vector 0, len=%d, ack_seqno=%llu, ack_ackno=%llu, ACKED!
\n
"
,
debug_prefix
,
len
,
ap
->
dccpap_ack_seqno
,
ap
->
dccpap_ack_ackno
);
(
unsigned
long
long
)
ap
->
dccpap_ack_seqno
,
(
unsigned
long
long
)
ap
->
dccpap_ack_ackno
);
dccp_ackpkts_trow_away_ack_record
(
ap
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment