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
8cb8f128
Commit
8cb8f128
authored
8 years ago
by
Michael Tüxen
Browse files
Options
Downloads
Patches
Plain Diff
Support codes for TIME EXCEEDED ICMP messages.
Sponsored by: Netflix
parent
f28e5fb7
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/icmp.h
+4
-0
4 additions, 0 deletions
gtests/net/packetdrill/icmp.h
gtests/net/packetdrill/icmp_packet.c
+8
-1
8 additions, 1 deletion
gtests/net/packetdrill/icmp_packet.c
with
12 additions
and
1 deletion
gtests/net/packetdrill/icmp.h
+
4
−
0
View file @
8cb8f128
...
...
@@ -94,4 +94,8 @@ struct icmpv4 {
#define ICMP_PREC_CUTOFF 15
#define NR_ICMP_UNREACH 15
/* Codes for ICMP_TIME_EXCEEDED */
#define ICMP_TTL_EX 0
#define ICMP_REAS_TIME_EX 1
#endif
/* __ICMP_HEADERS_H__ */
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/icmp_packet.c
+
8
−
1
View file @
8cb8f128
...
...
@@ -62,6 +62,13 @@ struct icmp_code_info icmpv4_unreachable_codes[] = {
{
0
,
NULL
},
};
/* Values for the 'code' byte of an IPv4 ICMP_TIME_EXCEEDED header (RFC 1700). */
struct
icmp_code_info
icmpv4_time_exceeded_codes
[]
=
{
{
ICMP_TTL_EX
,
"ttl_exceeded_in_transit"
},
{
ICMP_REAS_TIME_EX
,
"frag_reass_exceeded"
},
{
0
,
NULL
},
};
/* Information about the supported types of ICMPv4 header (RFC 1700). */
struct
icmp_type_info
icmpv4_types
[]
=
{
{
ICMP_ECHOREPLY
,
"echo_reply"
},
...
...
@@ -69,7 +76,7 @@ struct icmp_type_info icmpv4_types[] = {
{
ICMP_SOURCE_QUENCH
,
"source_quench"
},
{
ICMP_REDIRECT
,
"redirect"
},
{
ICMP_ECHO
,
"echo_request"
},
{
ICMP_TIME_EXCEEDED
,
"time_exceeded"
},
{
ICMP_TIME_EXCEEDED
,
"time_exceeded"
,
icmpv4_time_exceeded_codes
},
{
ICMP_PARAMETERPROB
,
"parameter_problem"
},
{
ICMP_TIMESTAMP
,
"timestamp_request"
},
{
ICMP_TIMESTAMPREPLY
,
"timestamp_reply"
},
...
...
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