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
83af4899
Commit
83af4899
authored
9 years ago
by
Michael Tüxen
Browse files
Options
Downloads
Patches
Plain Diff
Get it compiling under Linux.
While there, remove some trailing white spaces.
parent
4bbe0dba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gtests/net/packetdrill/run_system_call.c
+7
-7
7 additions, 7 deletions
gtests/net/packetdrill/run_system_call.c
with
7 additions
and
7 deletions
gtests/net/packetdrill/run_system_call.c
+
7
−
7
View file @
83af4899
...
@@ -2319,7 +2319,7 @@ static int check_sctp_event(struct sctp_event_expr *expr,
...
@@ -2319,7 +2319,7 @@ static int check_sctp_event(struct sctp_event_expr *expr,
}
}
#endif
#endif
#ifdef SCTP_EVENT
#ifdef SCTP_EVENT
S
static
int
check_sctp_event_subscribe
(
struct
sctp_event_subscribe_expr
*
expr
,
static
int
check_sctp_event_subscribe
(
struct
sctp_event_subscribe_expr
*
expr
,
struct
sctp_event_subscribe
*
sctp_events
,
struct
sctp_event_subscribe
*
sctp_events
,
char
**
error
)
char
**
error
)
...
@@ -3921,13 +3921,13 @@ static int check_sctp_shutdown_event(struct sctp_shutdown_event_expr *expr,
...
@@ -3921,13 +3921,13 @@ static int check_sctp_shutdown_event(struct sctp_shutdown_event_expr *expr,
return
STATUS_OK
;
return
STATUS_OK
;
}
}
#endif
#endif
#ifdef
__FreeBSD__
#if
def
ined(
__FreeBSD__
) || defined(linux)
static
int
check_sctp_sender_dry_event
(
struct
sctp_sender_dry_event_expr
*
expr
,
static
int
check_sctp_sender_dry_event
(
struct
sctp_sender_dry_event_expr
*
expr
,
struct
sctp_sender_dry_event
*
sctp_event
,
struct
sctp_sender_dry_event
*
sctp_event
,
char
**
error
)
{
char
**
error
)
{
if
(
expr
->
sender_dry_type
->
type
!=
EXPR_ELLIPSIS
)
{
if
(
expr
->
sender_dry_type
->
type
!=
EXPR_ELLIPSIS
)
{
u16
sender_dry_type
;
u16
sender_dry_type
;
if
(
get_u16
(
expr
->
sender_dry_type
,
&
sender_dry_type
,
error
))
{
if
(
get_u16
(
expr
->
sender_dry_type
,
&
sender_dry_type
,
error
))
{
return
STATUS_ERR
;
return
STATUS_ERR
;
}
}
...
@@ -3939,7 +3939,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
...
@@ -3939,7 +3939,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
}
}
if
(
expr
->
sender_dry_flags
->
type
!=
EXPR_ELLIPSIS
)
{
if
(
expr
->
sender_dry_flags
->
type
!=
EXPR_ELLIPSIS
)
{
u16
sender_dry_flags
;
u16
sender_dry_flags
;
if
(
get_u16
(
expr
->
sender_dry_flags
,
&
sender_dry_flags
,
error
))
{
if
(
get_u16
(
expr
->
sender_dry_flags
,
&
sender_dry_flags
,
error
))
{
return
STATUS_ERR
;
return
STATUS_ERR
;
}
}
...
@@ -3951,7 +3951,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
...
@@ -3951,7 +3951,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
}
}
if
(
expr
->
sender_dry_type
->
type
!=
EXPR_ELLIPSIS
)
{
if
(
expr
->
sender_dry_type
->
type
!=
EXPR_ELLIPSIS
)
{
u32
sender_dry_length
;
u32
sender_dry_length
;
if
(
get_u32
(
expr
->
sender_dry_length
,
&
sender_dry_length
,
error
))
{
if
(
get_u32
(
expr
->
sender_dry_length
,
&
sender_dry_length
,
error
))
{
return
STATUS_ERR
;
return
STATUS_ERR
;
}
}
...
@@ -3963,7 +3963,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
...
@@ -3963,7 +3963,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
}
}
if
(
expr
->
sender_dry_assoc_id
->
type
!=
EXPR_ELLIPSIS
)
{
if
(
expr
->
sender_dry_assoc_id
->
type
!=
EXPR_ELLIPSIS
)
{
u32
sender_dry_assoc_id
;
u32
sender_dry_assoc_id
;
if
(
get_u32
(
expr
->
sender_dry_assoc_id
,
&
sender_dry_assoc_id
,
error
))
{
if
(
get_u32
(
expr
->
sender_dry_assoc_id
,
&
sender_dry_assoc_id
,
error
))
{
return
STATUS_ERR
;
return
STATUS_ERR
;
}
}
...
@@ -4011,7 +4011,7 @@ static int check_sctp_notification(struct iovec *iov,
...
@@ -4011,7 +4011,7 @@ static int check_sctp_notification(struct iovec *iov,
case
EXPR_ELLIPSIS
:
case
EXPR_ELLIPSIS
:
break
;
break
;
default:
default:
asprintf
(
error
,
"Bad type for iov_base. Can't check type %s"
,
asprintf
(
error
,
"Bad type for iov_base. Can't check type %s"
,
expression_type_to_string
(
script_iov_base
->
type
));
expression_type_to_string
(
script_iov_base
->
type
));
return
STATUS_ERR
;
return
STATUS_ERR
;
break
;
break
;
...
...
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