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
5df470d0
Commit
5df470d0
authored
Oct 31, 2015
by
Francis Dupont
Browse files
[master] Finished trac4027 aka Pkt4o6 merge
parent
10418728
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/Makefile.am
View file @
5df470d0
...
...
@@ -15,7 +15,7 @@ CLEANFILES = *.gcno *.gcda
lib_LTLIBRARIES
=
libkea-dhcp++.la
libkea_dhcp___la_SOURCES
=
libkea_dhcp___la_SOURCES
+=
classify.cc classify.h
libkea_dhcp___la_SOURCES
+=
dhcp6.h dhcp4.h
dhcp4o6.h
libkea_dhcp___la_SOURCES
+=
dhcp6.h dhcp4.h
libkea_dhcp___la_SOURCES
+=
duid.cc duid.h
libkea_dhcp___la_SOURCES
+=
hwaddr.cc hwaddr.h
libkea_dhcp___la_SOURCES
+=
iface_mgr.cc iface_mgr.h
...
...
src/lib/dhcp/pkt.cc
View file @
5df470d0
...
...
@@ -50,10 +50,10 @@ Pkt::Pkt(const uint8_t* buf, uint32_t len, const isc::asiolink::IOAddress& local
{
if
(
len
!=
0
)
{
if
(
buf
==
NULL
)
{
isc_throw
(
InvalidParameter
,
"data buffer passed to Pkt is NULL"
);
}
data_
.
resize
(
len
);
if
(
buf
==
NULL
)
{
isc_throw
(
InvalidParameter
,
"data buffer passed to Pkt is NULL"
);
}
data_
.
resize
(
len
);
memcpy
(
&
data_
[
0
],
buf
,
len
);
}
}
...
...
src/lib/dhcp/pkt4.h
View file @
5df470d0
...
...
@@ -375,6 +375,14 @@ public:
/// (true) or non-relayed (false).
bool
isRelayed
()
const
;
/// @brief Checks if a DHCPv4 message has beeb transported over DHCPv6
///
/// @return Boolean value which indicates whether the message is
/// transported over DHCPv6 (true) or native DHCPv4 (false)
virtual
bool
isDhcp4o6
()
const
{
return
(
false
);
}
private:
/// @brief Generic method that validates and sets HW address.
...
...
src/lib/dhcp/pkt6.h
View file @
5df470d0
...
...
@@ -244,7 +244,7 @@ public:
/// @param option_code code of the requested option
/// @param nesting_level see description above
///
/// @return pointer to the option (or NULL if there is no such option)
/// @return pointer to the option (or NULL if there is no such option)
OptionPtr
getRelayOption
(
uint16_t
option_code
,
uint8_t
nesting_level
);
/// @brief Return first instance of a specified option
...
...
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