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
3811e657
Commit
3811e657
authored
9 years ago
by
Michael Tüxen
Browse files
Options
Downloads
Patches
Plain Diff
Get it compiling and linking on Linux.
parent
3b9db6ab
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/Makefile.Linux
+1
-1
1 addition, 1 deletion
gtests/net/packetdrill/Makefile.Linux
gtests/net/packetdrill/run_system_call.c
+10
-8
10 additions, 8 deletions
gtests/net/packetdrill/run_system_call.c
with
11 additions
and
9 deletions
gtests/net/packetdrill/Makefile.Linux
+
1
−
1
View file @
3811e657
packetdrill-ext-libs
:=
-lpthread
-lrt
packetdrill-ext-libs
:=
-lpthread
-lrt
-lsctp
include
Makefile.common
This diff is collapsed.
Click to expand it.
gtests/net/packetdrill/run_system_call.c
+
10
−
8
View file @
3811e657
...
...
@@ -414,7 +414,7 @@ static int get_sockstorage_arg(struct expression *arg, struct sockaddr_storage *
}
#endif
#if defined(__FreeBSD__) || defined(
__L
inux
__)
#if defined(__FreeBSD__) || defined(
l
inux
)
int
check_u8_expr
(
struct
expression
*
expr
,
u8
value
,
char
*
val_name
,
char
**
error
)
{
if
(
expr
->
type
!=
EXPR_ELLIPSIS
)
{
u8
script_val
;
...
...
@@ -431,7 +431,7 @@ int check_u8_expr(struct expression *expr, u8 value, char *val_name, char **erro
}
#endif
#if defined(__FreeBSD__) || defined(
__L
inux
__)
#if defined(__FreeBSD__) || defined(
l
inux
)
int
check_u16_expr
(
struct
expression
*
expr
,
u16
value
,
char
*
val_name
,
char
**
error
)
{
if
(
expr
->
type
!=
EXPR_ELLIPSIS
)
{
u16
script_val
;
...
...
@@ -463,7 +463,7 @@ int check_s32_expr(struct expression *expr, s16 value, char *val_name, char **er
return
STATUS_OK
;
}
#if defined(__FreeBSD__) || defined(
__L
inux
__
)
#if defined(__FreeBSD__) || defined(
l
inux)
int
check_u32_expr
(
struct
expression
*
expr
,
u16
value
,
char
*
val_name
,
char
**
error
)
{
if
(
expr
->
type
!=
EXPR_ELLIPSIS
)
{
u32
script_val
;
...
...
@@ -2804,7 +2804,7 @@ error_out:
static
int
syscall_sctp_sendmsg
(
struct
state
*
state
,
struct
syscall_spec
*
syscall
,
struct
expression_list
*
args
,
char
**
error
)
{
#if defined(__FreeBSD__) || defined(
__L
inux
__
)
#if defined(__FreeBSD__) || defined(
l
inux)
int
result
,
script_fd
,
live_fd
,
len
;
void
*
msg
=
NULL
;
struct
sockaddr_storage
to
;
...
...
@@ -2884,7 +2884,7 @@ static int syscall_sctp_sendmsg(struct state *state, struct syscall_spec *syscal
#endif
}
#if defined(__FreeBSD__) || defined(
__L
inux
__
)
#if defined(__FreeBSD__) || defined(
l
inux)
static
int
check_sctp_sndrcvinfo
(
struct
sctp_sndrcvinfo_expr
*
expr
,
struct
sctp_sndrcvinfo
*
sctp_sndrcvinfo
,
char
**
error
)
{
...
...
@@ -2993,7 +2993,7 @@ static int syscall_sctp_recvmsg(struct state *state, struct syscall_spec *syscal
struct
expression_list
*
args
,
char
**
error
)
{
#if defined(__FreeBSD__) || defined(
__L
inux
__
)
#if defined(__FreeBSD__) || defined(
l
inux)
int
script_fd
,
live_fd
,
live_msg_flags
,
result
;
void
*
msg
;
u32
len
;
...
...
@@ -3356,7 +3356,7 @@ static int check_sctp_shutdown_event(struct sctp_shutdown_event_expr *expr,
}
#endif
#ifdef
__FreeBSD__
#if
def
ined(
__FreeBSD__
) || defined(linux)
static
int
check_sctp_sender_dry_event
(
struct
sctp_sender_dry_event_expr
*
expr
,
struct
sctp_sender_dry_event
*
sctp_event
,
char
**
error
)
{
...
...
@@ -3378,7 +3378,7 @@ static int check_sctp_sender_dry_event(struct sctp_sender_dry_event_expr *expr,
}
#endif
#ifdef
__FreeBSD__
#if
def
ined(
__FreeBSD__
)
static
int
check_sctp_send_failed_event
(
struct
sctp_send_failed_event_expr
*
expr
,
struct
sctp_send_failed_event
*
sctp_event
,
char
**
error
)
{
...
...
@@ -3436,12 +3436,14 @@ static int check_sctp_notification(struct iovec *iov,
error
))
return
STATUS_ERR
;
break
;
#if defined(__FreeBSD__)
case
EXPR_SCTP_SEND_FAILED_EVENT
:
if
(
check_sctp_send_failed_event
(
script_iov_base
->
value
.
sctp_send_failed_event
,
(
struct
sctp_send_failed_event
*
)
iov
->
iov_base
,
error
))
return
STATUS_ERR
;
break
;
#endif
case
EXPR_ELLIPSIS
:
break
;
default:
...
...
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