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
e0832550
Commit
e0832550
authored
9 years ago
by
Michael Tüxen
Browse files
Options
Downloads
Patches
Plain Diff
Try to use somewhat consistent names.
parent
ebbca069
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/lexer.l
+2
-2
2 additions, 2 deletions
gtests/net/packetdrill/lexer.l
gtests/net/packetdrill/parser.y
+14
-14
14 additions, 14 deletions
gtests/net/packetdrill/parser.y
with
16 additions
and
16 deletions
gtests/net/packetdrill/lexer.l
+
2
−
2
View file @
e0832550
...
...
@@ -230,8 +230,8 @@ spp_hbinterval return SPP_HBINTERVAL;
spp_pathmaxrxt return SPP_PATHMAXRXT;
spp_pathmtu return SPP_PATHMTU;
spp_flags return SPP_FLAGS;
spp_ipv6_flowlabel return SPPIPV6FLOWLABEL
;
spp_dscp return SPPDSCP
;
spp_ipv6_flowlabel return SPP
_
IPV6
_
FLOWLABEL
_; /* avoid name clash */
spp_dscp return SPP
_
DSCP
_; /* avoid name clash */
CHUNK return CHUNK;
DATA return DATA;
INIT return INIT;
...
...
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/parser.y
+
14
−
14
View file @
e0832550
...
...
@@ -531,7 +531,7 @@ static struct tcp_option *new_tcp_fast_open_option(const char *cookie_string,
%token <reserved> USER_INITIATED_ABORT PROTOCOL_VIOLATION
%token <reserved> STALENESS CHK PARAM UNRECOGNIZED_PARAMETERS
%token <reserved> SPP_ADDRESS SPP_HBINTERVAL SPP_PATHMAXRXT SPP_PATHMTU
%token <reserved> SPP_FLAGS SPPIPV6FLOWLABEL SPPDSCP
%token <reserved> SPP_FLAGS SPP
_
IPV6
_
FLOWLABEL
_
SPP
_
DSCP
_
%token <floating> FLOAT
%token <integer> INTEGER HEX_INTEGER
%token <string> WORD STRING BACK_QUOTED CODE IPV4_ADDR IPV6_ADDR
...
...
@@ -576,7 +576,7 @@ static struct tcp_option *new_tcp_fast_open_option(const char *cookie_string,
%type <expression> sctp_paddrparams spp_address spp_hbinterval spp_pathmtu spp_pathmaxrxt
%type <expression> spp_flags spp_ipv6_flowlabel spp_dscp
%type <expression> spinfo_state spinfo_cwnd spinfo_srtt spinfo_rto spinfo_mtu
%type <errno_info> opt_errno
%type <errno_info> opt_errno
%type <chunk_list> sctp_chunk_list_spec
%type <chunk_list_item> sctp_chunk_spec
%type <chunk_list_item> sctp_generic_chunk_spec
...
...
@@ -2496,15 +2496,15 @@ sstat_primary
;
spinfo_state
: SPINFO_STATE '=' INTEGER {
: SPINFO_STATE '=' INTEGER {
if (!is_valid_s32($3)) {
semantic_error("spinfo_state out of range");
}
$$ = new_integer_expression($3, "%d");
$$ = new_integer_expression($3, "%d");
}
| SPINFO_STATE '=' WORD {
$$ = new_expression(EXPR_WORD);
$$->value.string = $3;
| SPINFO_STATE '=' WORD {
$$ = new_expression(EXPR_WORD);
$$->value.string = $3;
}
| SPINFO_STATE '=' ELLIPSIS { $$ = new_expression(EXPR_ELLIPSIS); }
;
...
...
@@ -2532,7 +2532,7 @@ spinfo_srtt
spinfo_rto
: SPINFO_RTO '=' INTEGER {
if (!is_valid_u32($3)) {
semantic_error("spinfo_rto out of range");
semantic_error("spinfo_rto out of range");
}
$$ = new_integer_expression($3, "%u");
}
...
...
@@ -2583,7 +2583,7 @@ spp_address
;
spp_hbinterval
: SPP_HBINTERVAL '=' INTEGER {
: SPP_HBINTERVAL '=' INTEGER {
if (!is_valid_u32($3)) {
semantic_error("spp_hbinterval out of range");
}
...
...
@@ -2617,27 +2617,27 @@ spp_flags
;
spp_ipv6_flowlabel
: SPPIPV6FLOWLABEL '=' INTEGER {
: SPP
_
IPV6
_
FLOWLABEL
_
'=' INTEGER {
if (!is_valid_u32($3)) {
semantic_error("spp_ipv6_flowlabel out of range");
}
$$ = new_integer_expression($3, "%u");
}
| SPPIPV6FLOWLABEL '=' ELLIPSIS { $$ = new_expression(EXPR_ELLIPSIS); }
| SPP
_
IPV6
_
FLOWLABEL
_
'=' ELLIPSIS { $$ = new_expression(EXPR_ELLIPSIS); }
;
spp_dscp
: SPPDSCP '=' INTEGER {
: SPP
_
DSCP
_
'=' INTEGER {
if (!is_valid_u8($3)) {
semantic_error("spp_dscp out of range");
}
$$ = new_integer_expression($3, "%hhu");
}
| SPPDSCP '=' ELLIPSIS { $$ = new_expression(EXPR_ELLIPSIS); }
| SPP
_
DSCP
_
'=' ELLIPSIS { $$ = new_expression(EXPR_ELLIPSIS); }
;
sctp_paddrparams
: '{' spp_address ',' spp_hbinterval ',' spp_pathmtu ',' spp_pathmaxrxt ',' spp_flags
: '{' spp_address ',' spp_hbinterval ',' spp_pathmtu ',' spp_pathmaxrxt ',' spp_flags
',' spp_ipv6_flowlabel ',' spp_dscp'}' {
$$ = new_expression(EXPR_SCTP_PEER_ADDR_PARAMS);
$$->value.sctp_paddrparams = (struct sctp_paddrparams_expr*) calloc(1, sizeof(struct sctp_paddrparams_expr));
...
...
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