Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
417c4130
Commit
417c4130
authored
Dec 16, 2014
by
Tomek Mrugalski
🛰
Browse files
[3554] Fix in Pkt::MACSourceFromText()
parent
4119b60c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/pkt.cc
View file @
417c4130
...
...
@@ -233,7 +233,7 @@ Pkt::getMACFromIPv6(const isc::asiolink::IOAddress& addr) {
return
(
HWAddrPtr
(
new
HWAddr
(
bin
,
hwtype
)));
}
uint
16
_t
Pkt
::
MACSourceFromText
(
const
std
::
string
&
name
)
{
uint
32
_t
Pkt
::
MACSourceFromText
(
const
std
::
string
&
name
)
{
struct
{
const
char
*
name
;
...
...
@@ -253,7 +253,7 @@ uint16_t Pkt::MACSourceFromText(const std::string& name) {
};
for
(
int
i
=
0
;
i
<
sizeof
(
sources
)
/
sizeof
(
sources
[
0
]);
++
i
)
{
if
(
name
.
compare
(
sources
[
i
].
name
))
{
if
(
name
.
compare
(
sources
[
i
].
name
)
==
0
)
{
return
(
sources
[
i
].
type
);
}
}
...
...
src/lib/dhcp/pkt.h
View file @
417c4130
...
...
@@ -99,7 +99,7 @@ public:
///
/// @throw BadValue if specified string is unknown
/// @return bitmask version of a given method
static
uint
16
_t
MACSourceFromText
(
const
std
::
string
&
name
);
static
uint
32
_t
MACSourceFromText
(
const
std
::
string
&
name
);
protected:
...
...
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