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
7d3a6353
Commit
7d3a6353
authored
8 years ago
by
Michael Tüxen
Browse files
Options
Downloads
Patches
Plain Diff
Use UNRECOGNIZED_CHUNK_TYPE instead of UNRECOGNIZED_CHUNK.
parent
dd434501
No related branches found
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/packet_to_string_test.c
+3
-3
3 additions, 3 deletions
gtests/net/packetdrill/packet_to_string_test.c
gtests/net/packetdrill/sctp_chunk_to_string.c
+3
-3
3 additions, 3 deletions
gtests/net/packetdrill/sctp_chunk_to_string.c
with
6 additions
and
6 deletions
gtests/net/packetdrill/packet_to_string_test.c
+
3
−
3
View file @
7d3a6353
...
...
@@ -291,7 +291,7 @@ static void test_sctp_ipv6_packet_to_string(void)
"STALE_COOKIE_ERROR[staleness=65536], "
"OUT_OF_RESOURCES[], "
"UNRESOLVABLE_ADDRESS[param=HOSTNAME_ADDRESS[addr=
\"
@A
\"
]], "
"UNRECOGNIZED_CHUNK[chk="
"UNRECOGNIZED_CHUNK
_TYPE
[chk="
"CHUNK[type=0xfe, flgs=0x05, value=[0x01]]], "
"INVALID_MANDATORY_PARAMETER[], "
"UNRECOGNIZED_PARAMETERS["
...
...
@@ -349,7 +349,7 @@ static void test_sctp_ipv6_packet_to_string(void)
"STALE_COOKIE_ERROR[staleness=65536], "
"OUT_OF_RESOURCES[], "
"UNRESOLVABLE_ADDRESS[param=HOSTNAME_ADDRESS[addr=
\"
@A
\"
]], "
"UNRECOGNIZED_CHUNK[chk="
"UNRECOGNIZED_CHUNK
_TYPE
[chk="
"CHUNK[type=0xfe, flgs=0x05, value=[0x01]]], "
"INVALID_MANDATORY_PARAMETER[], "
"UNRECOGNIZED_PARAMETERS["
...
...
@@ -407,7 +407,7 @@ static void test_sctp_ipv6_packet_to_string(void)
"STALE_COOKIE_ERROR[staleness=65536], "
"OUT_OF_RESOURCES[], "
"UNRESOLVABLE_ADDRESS[param=HOSTNAME_ADDRESS[addr=
\"
@A
\"
]], "
"UNRECOGNIZED_CHUNK[chk="
"UNRECOGNIZED_CHUNK
_TYPE
[chk="
"CHUNK[type=0xfe, flgs=0x05, value=[0x01]]], "
"INVALID_MANDATORY_PARAMETER[], "
"UNRECOGNIZED_PARAMETERS["
...
...
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/sctp_chunk_to_string.c
+
3
−
3
View file @
7d3a6353
...
...
@@ -758,7 +758,7 @@ static int sctp_unrecognized_chunk_type_cause_to_string(
cause_length
=
ntohs
(
cause
->
length
);
if
(
cause_length
<
sizeof
(
struct
sctp_unrecognized_chunk_type_cause
)
+
sizeof
(
struct
sctp_chunk
))
{
asprintf
(
error
,
"UNRECOGNIZED_CHUNK cause too short"
);
asprintf
(
error
,
"UNRECOGNIZED_CHUNK
_TYPE
cause too short"
);
return
STATUS_ERR
;
}
cause_padding
=
cause_length
&
0x0003
;
...
...
@@ -773,10 +773,10 @@ static int sctp_unrecognized_chunk_type_cause_to_string(
if
(
cause_length
+
cause_padding
!=
sizeof
(
struct
sctp_unrecognized_chunk_type_cause
)
+
chunk_length
+
chunk_padding
)
{
asprintf
(
error
,
"UNRECOGNIZED_CHUNK cause inconsistent"
);
asprintf
(
error
,
"UNRECOGNIZED_CHUNK
_TYPE
cause inconsistent"
);
return
STATUS_ERR
;
}
fputs
(
"UNRECOGNIZED_CHUNK[chk="
,
s
);
fputs
(
"UNRECOGNIZED_CHUNK
_TYPE
[chk="
,
s
);
result
=
sctp_chunk_to_string
(
s
,
chunk
,
error
);
fputc
(
']'
,
s
);
return
result
;
...
...
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