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
1669d031
Commit
1669d031
authored
Feb 16, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unused function
parent
4e7c80a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
stun/utils.c
stun/utils.c
+0
-40
stun/utils.h
stun/utils.h
+0
-2
No files found.
stun/utils.c
View file @
1669d031
...
@@ -44,46 +44,6 @@
...
@@ -44,46 +44,6 @@
#include "utils.h"
#include "utils.h"
/** Compares two socket addresses
* @return 0 if the addresses are equal, non-zero otherwise
*/
int
sockaddrcmp
(
const
struct
sockaddr
*
a
,
const
struct
sockaddr
*
b
)
{
int
res
;
res
=
a
->
sa_family
-
b
->
sa_family
;
if
(
res
)
return
res
;
switch
(
a
->
sa_family
)
{
case
AF_INET
:
{
const
struct
sockaddr_in
*
a4
=
(
const
struct
sockaddr_in
*
)
a
;
const
struct
sockaddr_in
*
b4
=
(
const
struct
sockaddr_in
*
)
b
;
res
=
memcmp
(
&
a4
->
sin_addr
,
&
b4
->
sin_addr
,
4
);
if
(
res
==
0
)
res
=
memcmp
(
&
a4
->
sin_port
,
&
b4
->
sin_port
,
2
);
break
;
}
case
AF_INET6
:
{
const
struct
sockaddr_in6
*
a6
=
(
const
struct
sockaddr_in6
*
)
a
;
const
struct
sockaddr_in6
*
b6
=
(
const
struct
sockaddr_in6
*
)
b
;
res
=
memcmp
(
&
a6
->
sin6_addr
,
&
b6
->
sin6_addr
,
16
);
if
(
res
==
0
)
res
=
a6
->
sin6_scope_id
-
b6
->
sin6_scope_id
;
if
(
res
==
0
)
res
=
memcmp
(
&
a6
->
sin6_port
,
&
b6
->
sin6_port
,
2
);
break
;
}
}
return
res
;
}
bool
stun_optional
(
uint16_t
t
)
bool
stun_optional
(
uint16_t
t
)
{
{
...
...
stun/utils.h
View file @
1669d031
...
@@ -56,8 +56,6 @@ extern "C" {
...
@@ -56,8 +56,6 @@ extern "C" {
# endif
# endif
int
sockaddrcmp
(
const
struct
sockaddr
*
a
,
const
struct
sockaddr
*
b
);
bool
stun_optional
(
uint16_t
t
);
bool
stun_optional
(
uint16_t
t
);
size_t
stun_padding
(
size_t
l
);
size_t
stun_padding
(
size_t
l
);
...
...
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