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
ce8bcb74
Commit
ce8bcb74
authored
9 years ago
by
Hoelscher
Browse files
Options
Downloads
Patches
Plain Diff
change syntax of reconfig parameter
parent
89255463
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gtests/net/packetdrill/lexer.l
+3
-2
3 additions, 2 deletions
gtests/net/packetdrill/lexer.l
gtests/net/packetdrill/parser.y
+12
-12
12 additions, 12 deletions
gtests/net/packetdrill/parser.y
gtests/net/packetdrill/sctp_chunk_to_string.c
+5
-3
5 additions, 3 deletions
gtests/net/packetdrill/sctp_chunk_to_string.c
with
20 additions
and
17 deletions
gtests/net/packetdrill/lexer.l
+
3
−
2
View file @
ce8bcb74
...
...
@@ -567,9 +567,10 @@ gaps return GAPS;
dups return DUPS;
adaptation_code_point return ADAPTATION_CODE_POINT;
OUTGOING_SSN_RESET return OUTGOING_SSN_RESET;
reqsn return REQSN;
respsn return RESPSN;
req
_
sn return REQ
_
SN;
resp
_
sn return RESP
_
SN;
last_tsn return LAST_TSN;
result return RESULT;
sids return SIDS;
PARAMETER return PARAMETER;
HEARTBEAT_INFORMATION return HEARTBEAT_INFORMATION;
...
...
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/parser.y
+
12
−
12
View file @
ce8bcb74
...
...
@@ -525,7 +525,7 @@ static struct tcp_option *new_tcp_fast_open_option(const char *cookie_string,
%token <reserved> STATE_COOKIE UNRECOGNIZED_PARAMETER COOKIE_PRESERVATIVE
%token <reserved> HOSTNAME_ADDRESS SUPPORTED_ADDRESS_TYPES ECN_CAPABLE
%token <reserved> SUPPORTED_EXTENSIONS ADAPTATION_CODE_POINT ADAPTATION_INDICATION
%token <reserved> OUTGOING_SSN_RESET REQSN RESPSN LAST_TSN SIDS
%token <reserved> OUTGOING_SSN_RESET REQ
_
SN RESP
_
SN LAST_TSN SIDS
RESULT
%token <reserved> ADDR INCR TYPES PARAMS
%token <reserved> IPV4_TYPE IPV6_TYPE HOSTNAME_TYPE
%token <reserved> CAUSE
...
...
@@ -708,7 +708,7 @@ static struct tcp_option *new_tcp_fast_open_option(const char *cookie_string,
%type <integer> opt_tag opt_a_rwnd opt_os opt_is opt_tsn opt_sid opt_ssn
%type <integer> opt_mid opt_fsn
%type <integer> opt_cum_tsn opt_ppid
%type <integer> opt_reqsn opt_respsn opt_last_tsn
%type <integer> opt_req
_
sn opt_resp
_
sn opt_last_tsn
%type <byte_list> opt_val opt_info byte_list chunk_types_list
%type <byte_list_item> byte
%type <u16_list> u16_list
...
...
@@ -1688,24 +1688,24 @@ sctp_pad_chunk_spec
$$ = sctp_pad_chunk_new($3, $5, NULL);
}
opt_reqsn
: REQSN '=' INTEGER {
opt_req
_
sn
: REQ
_
SN '=' INTEGER {
if (!is_valid_u16($3)) {
semantic_error("reqsn out of range");
semantic_error("req
_
sn out of range");
}
$$ = $3;
}
| REQSN '=' ELLIPSIS { $$ = -1; }
| REQ
_
SN '=' ELLIPSIS { $$ = -1; }
;
opt_respsn
: RESPSN '=' INTEGER {
opt_resp
_
sn
: RESP
_
SN '=' INTEGER {
if (!is_valid_u16($3)) {
semantic_error("respsn out of range");
semantic_error("resp
_
sn out of range");
}
$$ = $3;
}
| RESPSN '=' ELLIPSIS { $$ = -1; }
| RESP
_
SN '=' ELLIPSIS { $$ = -1; }
;
opt_last_tsn
...
...
@@ -1730,10 +1730,10 @@ sctp_reconfig_parameter_list_spec
;
sctp_reconfig_parameter_spec
: OUTGOING_SSN_RESET '[' opt_reqsn ',' opt_respsn ',' opt_last_tsn ']' {
: OUTGOING_SSN_RESET '[' opt_req
_
sn ',' opt_resp
_
sn ',' opt_last_tsn ']' {
$$ = sctp_outgoing_ssn_reset_request_parameter_new($3, $5, $7, NULL);
}
| OUTGOING_SSN_RESET '[' opt_reqsn ',' opt_respsn ',' opt_last_tsn ',' SIDS '=' '[' u16_list ']' ']' {
| OUTGOING_SSN_RESET '[' opt_req
_
sn ',' opt_resp
_
sn ',' opt_last_tsn ',' SIDS '=' '[' u16_list ']' ']' {
$$ = sctp_outgoing_ssn_reset_request_parameter_new($3, $5, $7, $12);
}
;
...
...
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/sctp_chunk_to_string.c
+
5
−
3
View file @
ce8bcb74
...
...
@@ -333,14 +333,16 @@ static int sctp_outgoing_ssn_reset_request_parameter_to_string(
last_tsn
=
ntohl
(
parameter
->
last_tsn
);
fputs
(
"OUTGOING_SSN_RESET["
,
s
);
fprintf
(
s
,
"len=%hu, "
,
length
);
fprintf
(
s
,
"reqsn=%u, "
,
reqsn
);
fprintf
(
s
,
"respsn=%u, "
,
respsn
);
fprintf
(
s
,
"req
_
sn=%u, "
,
reqsn
);
fprintf
(
s
,
"resp
_
sn=%u, "
,
respsn
);
fprintf
(
s
,
"last_tsn=%u, "
,
last_tsn
);
fputs
(
"sids=["
,
s
);
for
(
len
=
0
;
len
<
((
length
-
16
)
/
sizeof
(
u16
));
len
++
)
{
u16
sid
;
sid
=
ntohs
(
parameter
->
sids
[
len
]);
fprintf
(
s
,
"%hu, "
,
sid
);
if
(
len
>
0
)
fprintf
(
s
,
", "
);
fprintf
(
s
,
"%hu"
,
sid
);
}
fputs
(
"]"
,
s
);
return
STATUS_OK
;
...
...
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