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
e3cf2511
Commit
e3cf2511
authored
8 years ago
by
Hoelscher
Browse files
Options
Downloads
Patches
Plain Diff
fix chunk_to_string for reconfig parameter
parent
f27a442e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gtests/net/packetdrill/sctp_chunk_to_string.c
+3
-3
3 additions, 3 deletions
gtests/net/packetdrill/sctp_chunk_to_string.c
gtests/net/packetdrill/sctp_packet.h
+0
-1
0 additions, 1 deletion
gtests/net/packetdrill/sctp_packet.h
with
3 additions
and
4 deletions
gtests/net/packetdrill/sctp_chunk_to_string.c
+
3
−
3
View file @
e3cf2511
...
...
@@ -328,7 +328,7 @@ static int sctp_outgoing_ssn_reset_request_parameter_to_string(
int
len
;
length
=
ntohs
(
parameter
->
length
);
if
(
length
!=
sizeof
(
struct
sctp_outgoing_ssn_reset_request_parameter
))
{
if
(
length
<
sizeof
(
struct
sctp_outgoing_ssn_reset_request_parameter
))
{
fputs
(
"invalid OUTGOING_SSN_RESET_REQUEST parameter"
,
s
);
asprintf
(
error
,
"OUTGOING_SSN_RESET_REQUEST parameter illegal (length=%u)"
,
length
);
...
...
@@ -364,7 +364,7 @@ static int sctp_incoming_ssn_reset_request_parameter_to_string(
int
len
;
length
=
ntohs
(
parameter
->
length
);
if
(
length
!=
sizeof
(
struct
sctp_incoming_ssn_reset_request_parameter
))
{
if
(
length
<
sizeof
(
struct
sctp_incoming_ssn_reset_request_parameter
))
{
fputs
(
"invalid INCOMING_SSN_RESET_REQUEST parameter"
,
s
);
asprintf
(
error
,
"INCOMING_SSN_RESET_REQUEST parameter illegal (length=%u)"
,
length
);
...
...
@@ -424,7 +424,7 @@ static int sctp_reconfig_response_parameter_to_string(
length
=
ntohs
(
parameter
->
length
);
// filter correct length
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
);
asprintf
(
error
,
"RECONFIG_RESPONSE parameter illegal (length=%u)"
,
length
);
...
...
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/sctp_packet.h
+
0
−
1
View file @
e3cf2511
/*
* Copyright 2015 Michael Tuexen
*
...
...
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