Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
d8045b5e
Commit
d8045b5e
authored
Dec 13, 2013
by
Tomek Mrugalski
🛰
Browse files
[2246] Another Solaris 11 compilation fix
parent
113fef86
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/iface_mgr_sun.cc
View file @
d8045b5e
...
...
@@ -54,14 +54,14 @@ IfaceMgr::detectIfaces() {
const
char
*
ifname
=
ifptr
->
ifa_name
;
uint
ifindex
=
0
;
if
(
!
(
ifindex
=
if_nametoindex
(
ifname
)))
{
if
(
!
(
ifindex
=
if_nametoindex
(
ifname
)))
{
// Interface name does not have corresponding index ...
freeifaddrs
(
iflist
);
isc_throw
(
Unexpected
,
"Interface "
<<
ifname
<<
" has no index"
);
}
iface_iter
=
ifaces
.
find
(
ifname
);
if
(
iface_iter
!=
iface
Lst
.
end
())
{
if
(
iface_iter
!=
iface
s
.
end
())
{
continue
;
}
...
...
@@ -79,7 +79,7 @@ IfaceMgr::detectIfaces() {
}
// Common byte pointer for following data
const
uint8_t
*
ptr
=
0
;
if
(
ifptr
->
ifa_addr
->
sa_family
==
AF_LINK
)
{
if
(
ifptr
->
ifa_addr
->
sa_family
==
AF_LINK
)
{
// HWAddr
struct
sockaddr_dl
*
ldata
=
reinterpret_cast
<
struct
sockaddr_dl
*>
(
ifptr
->
ifa_addr
);
...
...
@@ -87,7 +87,7 @@ IfaceMgr::detectIfaces() {
iface_iter
->
second
.
setHWType
(
ldata
->
sdl_type
);
iface_iter
->
second
.
setMac
(
ptr
,
ldata
->
sdl_alen
);
}
else
if
(
ifptr
->
ifa_addr
->
sa_family
==
AF_INET6
)
{
}
else
if
(
ifptr
->
ifa_addr
->
sa_family
==
AF_INET6
)
{
// IPv6 Addr
struct
sockaddr_in6
*
adata
=
reinterpret_cast
<
struct
sockaddr_in6
*>
(
ifptr
->
ifa_addr
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment