Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
688d3cb9
Commit
688d3cb9
authored
Mar 14, 2007
by
Dafydd Harries
Browse files
local/: use nice_address_set_from_sockaddr_in ()
darcs-hash:20070314141606-c9803-06daed498ad21212956f0d5806c5ac7845628c09.gz
parent
ff52edd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
local/local.c
View file @
688d3cb9
...
...
@@ -40,14 +40,7 @@ nice_list_local_interfaces ()
iface
=
g_slice_new0
(
NiceInterface
);
iface
->
name
=
g_strdup
(
i
->
ifa_name
);
if
(
addr
->
sin_family
==
AF_INET
)
nice_address_set_ipv4
(
&
iface
->
addr
,
ntohl
(
addr
->
sin_addr
.
s_addr
));
else
nice_address_set_ipv6
(
&
iface
->
addr
,
(
gchar
*
)
&
((
struct
sockaddr_in6
*
)
addr
)
->
sin6_addr
);
nice_address_set_from_sockaddr_in
(
&
(
iface
->
addr
),
addr
);
ret
=
g_slist_append
(
ret
,
iface
);
}
}
...
...
Write
Preview
Supports
Markdown
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