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
Adam Osuchowski
Kea
Commits
01bb436c
Commit
01bb436c
authored
Jul 16, 2013
by
Tomek Mrugalski
🛰
Browse files
[2994] Minor dhcpv6 corrections:
- not used function removed - DHCP6_HOOK_PACKET_RCVD_SKIP message typo fixed
parent
a8a8909b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_messages.mes
View file @
01bb436c
...
...
@@ -66,7 +66,7 @@ is started. It indicates what database backend type is being to store
lease and other information.
% DHCP6_HOOK_PACKET_RCVD_SKIP received DHCPv6 packet was dropped, because a callout set skip flag.
This debug message is printed when a callout installed on pkt6_receive
d
This debug message is printed when a callout installed on pkt6_receive
hook point sets skip flag. For this particular hook point, the setting
of the flag by a callout instructs the server to drop the packet.
...
...
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
View file @
01bb436c
...
...
@@ -34,7 +34,6 @@
#include
<dhcpsrv/utils.h>
#include
<util/buffer.h>
#include
<util/range_utilities.h>
#include
<hooks/server_hooks.h>
#include
<hooks/hooks_manager.h>
...
...
@@ -1855,26 +1854,6 @@ TEST_F(Dhcpv6SrvTest, Hooks) {
EXPECT_TRUE
(
hook_index_pkt6_send
>
0
);
}
// This function returns buffer for empty packet (just DHCPv6 header)
Pkt6
*
captureEmpty
()
{
Pkt6
*
pkt
;
uint8_t
data
[
4
];
data
[
0
]
=
1
;
// type 1 = SOLICIT
data
[
1
]
=
0xca
;
// trans-id = 0xcafe01
data
[
2
]
=
0xfe
;
data
[
3
]
=
0x01
;
pkt
=
new
Pkt6
(
data
,
sizeof
(
data
));
pkt
->
setRemotePort
(
546
);
pkt
->
setRemoteAddr
(
IOAddress
(
"fe80::1"
));
pkt
->
setLocalPort
(
0
);
pkt
->
setLocalAddr
(
IOAddress
(
"ff02::1:2"
));
pkt
->
setIndex
(
2
);
pkt
->
setIface
(
"eth0"
);
return
(
pkt
);
}
// This function returns buffer for very simple Solicit
Pkt6
*
captureSimpleSolicit
()
{
Pkt6
*
pkt
;
...
...
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