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
Sebastian Schrader
Kea
Commits
8a040737
Commit
8a040737
authored
Dec 23, 2011
by
Tomek Mrugalski
🛰
Browse files
[1237] joinMcast() renamed to joinMulticast()
parent
dc2ae81f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/iface_mgr.cc
View file @
8a040737
...
...
@@ -218,7 +218,7 @@ void IfaceMgr::openSockets6(uint16_t port) {
<<
" interface "
<<
iface
->
getFullName
());
}
if
(
!
joinMcast
(
sock1
,
iface
->
getName
(),
if
(
!
joinM
ulti
cast
(
sock1
,
iface
->
getName
(),
string
(
ALL_DHCP_RELAY_AGENTS_AND_SERVERS
)
)
)
{
close
(
sock1
);
isc_throw
(
Unexpected
,
"Failed to join "
<<
ALL_DHCP_RELAY_AGENTS_AND_SERVERS
...
...
@@ -414,7 +414,7 @@ IfaceMgr::openSocket6(Iface& iface, const IOAddress& addr, int port) {
// are link and site-scoped, so there is no sense to join those groups
// with global addresses.
if
(
!
joinMcast
(
sock
,
iface
.
getName
(),
if
(
!
joinM
ulti
cast
(
sock
,
iface
.
getName
(),
string
(
ALL_DHCP_RELAY_AGENTS_AND_SERVERS
)
)
)
{
close
(
sock
);
isc_throw
(
Unexpected
,
"Failed to join "
<<
ALL_DHCP_RELAY_AGENTS_AND_SERVERS
...
...
@@ -431,7 +431,7 @@ IfaceMgr::openSocket6(Iface& iface, const IOAddress& addr, int port) {
}
bool
IfaceMgr
::
joinMcast
(
int
sock
,
const
std
::
string
&
ifname
,
IfaceMgr
::
joinM
ulti
cast
(
int
sock
,
const
std
::
string
&
ifname
,
const
std
::
string
&
mcast
)
{
struct
ipv6_mreq
mreq
;
...
...
src/lib/dhcp/iface_mgr.h
View file @
8a040737
...
...
@@ -452,8 +452,8 @@ private:
/// @return true if multicast join was successful
///
bool
joinMcast
(
int
sock
,
const
std
::
string
&
ifname
,
const
std
::
string
&
mcast
);
joinM
ulti
cast
(
int
sock
,
const
std
::
string
&
ifname
,
const
std
::
string
&
mcast
);
};
...
...
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