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
cb63816f
Commit
cb63816f
authored
9 years ago
by
Hoelscher
Browse files
Options
Downloads
Patches
Plain Diff
add symbols for freeBSD for sctp_enable_stream_reset
parent
fe316863
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/run_system_call.c
+4
-4
4 additions, 4 deletions
gtests/net/packetdrill/run_system_call.c
gtests/net/packetdrill/symbols_freebsd.c
+6
-0
6 additions, 0 deletions
gtests/net/packetdrill/symbols_freebsd.c
with
10 additions
and
4 deletions
gtests/net/packetdrill/run_system_call.c
+
4
−
4
View file @
cb63816f
...
...
@@ -3175,7 +3175,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
break
;
}
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
|| defined(SCTP_ENABLE_STREAM_RESET)
case
EXPR_SCTP_ASSOC_VALUE
:
live_optval
=
malloc
(
sizeof
(
struct
sctp_assoc_value
));
live_optlen
=
(
socklen_t
)
sizeof
(
struct
sctp_assoc_value
);
...
...
@@ -3375,7 +3375,7 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
result
=
check_sctp_paddrparams
(
val_expression
->
value
.
sctp_paddrparams
,
live_optval
,
error
);
break
;
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
|| defined(SCTP_ENABLE_STREAM_RESET)
case
EXPR_SCTP_ASSOC_VALUE
:
result
=
check_sctp_assoc_value
(
val_expression
->
value
.
sctp_assoc_value
,
live_optval
,
error
);
break
;
...
...
@@ -3467,7 +3467,7 @@ static int syscall_setsockopt(struct state *state, struct syscall_spec *syscall,
#ifdef SCTP_INITMSG
struct
sctp_initmsg
initmsg
;
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
|| defined(SCTP_ENABLE_STREAM_RESET)
struct
sctp_assoc_value
assoc_value
;
#endif
#ifdef SCTP_AUTH_ACTIVE_KEY
...
...
@@ -3609,7 +3609,7 @@ static int syscall_setsockopt(struct state *state, struct syscall_spec *syscall,
optval
=
&
initmsg
;
break
;
#endif
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
#if defined(SCTP_MAXSEG) || defined(SCTP_MAX_BURST) || defined(SCTP_INTERLEAVING_SUPPORTED)
|| defined(SCTP_ENABLE_STREAM_RESET)
case
EXPR_SCTP_ASSOC_VALUE
:
if
(
get_sctp_assoc_t
(
val_expression
->
value
.
sctp_assoc_value
->
assoc_id
,
&
assoc_value
.
assoc_id
,
error
))
{
...
...
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/symbols_freebsd.c
+
6
−
0
View file @
cb63816f
...
...
@@ -264,6 +264,12 @@ struct int_symbol platform_symbols_table[] = {
{
SCTP_USE_EXT_RCVINFO
,
"SCTP_USE_EXT_RCVINFO"
},
{
SCTP_AUTH_HMAC_ID_SHA1
,
"SCTP_AUTH_HMAC_ID_SHA1"
},
{
SCTP_AUTH_HMAC_ID_SHA256
,
"SCTP_AUTH_HMAC_ID_SHA256"
},
/* sctp stream reconfiguration */
{
SCTP_ENABLE_STREAM_RESET
,
"SCTP_ENABLE_STREAM_RESET"
},
{
SCTP_ENABLE_RESET_STREAM_REQ
,
"SCTP_ENABLE_RESET_STREAM_REQ"
},
{
SCTP_ENABLE_RESET_ASSOC_REQ
,
"SCTP_ENABLE_RESET_ASSOC_REQ"
},
{
SCTP_ENABLE_CHANGE_ASSOC_REQ
,
"SCTP_ENABLE_CHANGE_ASSOC_REQ"
},
/* /usr/include/netinet/tcp.h */
{
TCP_NODELAY
,
"TCP_NODELAY"
},
{
TCP_MAXSEG
,
"TCP_MAXSEG"
},
...
...
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