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
dbffdfc1
Commit
dbffdfc1
authored
Jun 10, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by Olivier Crete : Really return the next available foundation
parent
471708b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
agent/discovery.c
agent/discovery.c
+10
-5
No files found.
agent/discovery.c
View file @
dbffdfc1
...
...
@@ -679,21 +679,26 @@ discovery_add_peer_reflexive_candidate (
static
guint
priv_highest_remote_foundation
(
Component
*
component
)
{
GSList
*
i
;
guint
highest
=
0
;
guint
highest
=
1
;
gchar
foundation
[
NICE_CANDIDATE_MAX_FOUNDATION
];
for
(;;)
{
for
(
highest
=
1
;;
highest
++
)
{
gboolean
taken
=
FALSE
;
g_snprintf
(
foundation
,
NICE_CANDIDATE_MAX_FOUNDATION
,
"%u"
,
highest
);
for
(
i
=
component
->
remote_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
cand
=
i
->
data
;
if
(
strncmp
(
foundation
,
cand
->
foundation
,
NICE_CANDIDATE_MAX_FOUNDATION
)
!=
0
)
{
return
highest
;
NICE_CANDIDATE_MAX_FOUNDATION
)
==
0
)
{
taken
=
TRUE
;
break
;
}
}
if
(
!
taken
)
return
highest
;
}
return
highest
;
g_return_val_if_reached
(
highest
)
;
}
/*
...
...
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