Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
53cccf94
Commit
53cccf94
authored
Jul 31, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Porting conncheck test to the new API
parent
5514d0de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
stun/tests/test-conncheck.c
stun/tests/test-conncheck.c
+7
-7
No files found.
stun/tests/test-conncheck.c
View file @
53cccf94
...
...
@@ -62,7 +62,7 @@ int main (void)
ssize_t
val
;
size_t
len
;
size_t
rlen
;
static
c
onst
c
har
username
[]
=
"L:R"
,
ufrag
[]
=
"L"
,
pass
[]
=
"secret"
;
static
char
username
[]
=
"L:R"
,
ufrag
[]
=
"L"
,
pass
[]
=
"secret"
;
int
code
;
uint16_t
alen
;
bool
control
=
false
;
...
...
@@ -98,7 +98,7 @@ int main (void)
len
=
sizeof
(
resp_buf
);
val
=
stun_usage_ice_conncheck_create_reply
(
&
agent
,
&
req
,
&
resp
,
resp_buf
,
&
len
,
(
struct
sockaddr
*
)
&
ip4
,
sizeof
(
ip4
),
&
control
,
tie
);
sizeof
(
ip4
),
&
control
,
tie
,
STUN_USAGE_ICE_COMPATIBILITY_ID19
);
assert
(
val
==
EINVAL
);
assert
(
len
==
0
);
...
...
@@ -112,7 +112,7 @@ int main (void)
len
=
sizeof
(
resp_buf
);
val
=
stun_usage_ice_conncheck_create_reply
(
&
agent
,
&
req
,
&
resp
,
resp_buf
,
&
len
,
(
struct
sockaddr
*
)
&
ip4
,
sizeof
(
ip4
),
&
control
,
tie
);
sizeof
(
ip4
),
&
control
,
tie
,
STUN_USAGE_ICE_COMPATIBILITY_ID19
);
assert
(
val
==
EPROTO
);
assert
(
len
>
0
);
...
...
@@ -166,7 +166,7 @@ int main (void)
len
=
sizeof
(
resp_buf
);
val
=
stun_usage_ice_conncheck_create_reply
(
&
agent
,
&
req
,
&
resp
,
resp_buf
,
&
len
,
(
struct
sockaddr
*
)
&
ip4
,
sizeof
(
ip4
),
&
control
,
tie
);
sizeof
(
ip4
),
&
control
,
tie
,
STUN_USAGE_ICE_COMPATIBILITY_ID19
);
assert
(
val
==
0
);
assert
(
len
>
0
);
assert
(
stun_agent_validate
(
&
agent
,
&
resp
,
resp_buf
,
len
,
...
...
@@ -186,7 +186,7 @@ int main (void)
len
=
sizeof
(
resp_buf
);
val
=
stun_usage_ice_conncheck_create_reply
(
&
agent
,
&
req
,
&
resp
,
resp_buf
,
&
len
,
(
struct
sockaddr
*
)
&
ip4
,
sizeof
(
ip4
),
&
control
,
tie
);
sizeof
(
ip4
),
&
control
,
tie
,
STUN_USAGE_ICE_COMPATIBILITY_ID19
);
assert
(
val
==
EAFNOSUPPORT
);
assert
(
len
==
0
);
...
...
@@ -206,7 +206,7 @@ int main (void)
control
=
true
;
val
=
stun_usage_ice_conncheck_create_reply
(
&
agent
,
&
req
,
&
resp
,
resp_buf
,
&
len
,
(
struct
sockaddr
*
)
&
ip4
,
sizeof
(
ip4
),
&
control
,
tie
);
sizeof
(
ip4
),
&
control
,
tie
,
STUN_USAGE_ICE_COMPATIBILITY_ID19
);
assert
(
val
==
EACCES
);
assert
(
len
>
0
);
assert
(
control
==
false
);
...
...
@@ -227,7 +227,7 @@ int main (void)
control
=
false
;
val
=
stun_usage_ice_conncheck_create_reply
(
&
agent
,
&
req
,
&
resp
,
resp_buf
,
&
len
,
(
struct
sockaddr
*
)
&
ip4
,
sizeof
(
ip4
),
&
control
,
tie
);
sizeof
(
ip4
),
&
control
,
tie
,
STUN_USAGE_ICE_COMPATIBILITY_ID19
);
assert
(
val
==
0
);
assert
(
len
>
0
);
assert
(
control
==
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment