Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Packetdrill_tarr_ext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stefan Gense
Packetdrill_tarr_ext
Commits
97712dcf
Commit
97712dcf
authored
8 years ago
by
Hoelscher
Browse files
Options
Downloads
Patches
Plain Diff
modify print of INCOMING_SSN_RESET parameter
parent
e3cf2511
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gtests/net/packetdrill/sctp_chunk_to_string.c
+3
-3
3 additions, 3 deletions
gtests/net/packetdrill/sctp_chunk_to_string.c
with
3 additions
and
3 deletions
gtests/net/packetdrill/sctp_chunk_to_string.c
+
3
−
3
View file @
97712dcf
...
@@ -373,7 +373,7 @@ static int sctp_incoming_ssn_reset_request_parameter_to_string(
...
@@ -373,7 +373,7 @@ static int sctp_incoming_ssn_reset_request_parameter_to_string(
reqsn
=
ntohl
(
parameter
->
reqsn
);
reqsn
=
ntohl
(
parameter
->
reqsn
);
fputs
(
"INCOMING_SSN_RESET["
,
s
);
fputs
(
"INCOMING_SSN_RESET["
,
s
);
fprintf
(
s
,
"len=%hu, "
,
length
);
fprintf
(
s
,
"len=%hu, "
,
length
);
fprintf
(
s
,
"req_sn=%u
,"
,
reqsn
);
fprintf
(
s
,
"req_sn=%u,
"
,
reqsn
);
fputs
(
"sids=["
,
s
);
fputs
(
"sids=["
,
s
);
for
(
len
=
0
;
len
<
((
length
-
8
)
/
sizeof
(
u16
));
len
++
)
{
for
(
len
=
0
;
len
<
((
length
-
8
)
/
sizeof
(
u16
));
len
++
)
{
u16
sid
;
u16
sid
;
...
@@ -423,8 +423,8 @@ static int sctp_reconfig_response_parameter_to_string(
...
@@ -423,8 +423,8 @@ static int sctp_reconfig_response_parameter_to_string(
length
=
ntohs
(
parameter
->
length
);
length
=
ntohs
(
parameter
->
length
);
// filter correct length
// filter correct length
if
(
!
(
length
=
=
sizeof
(
struct
sctp_reconfig_response_parameter
))
&&
if
((
length
!
=
sizeof
(
struct
sctp_reconfig_response_parameter
))
&&
!
(
length
=
=
sizeof
(
struct
sctp_reconfig_response_parameter
)
-
8
))
{
(
length
!
=
sizeof
(
struct
sctp_reconfig_response_parameter
)
-
8
))
{
fputs
(
"invalid RECONFIG_RESPONSE parameter"
,
s
);
fputs
(
"invalid RECONFIG_RESPONSE parameter"
,
s
);
asprintf
(
error
,
"RECONFIG_RESPONSE parameter illegal (length=%u)"
,
asprintf
(
error
,
"RECONFIG_RESPONSE parameter illegal (length=%u)"
,
length
);
length
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment