Commit 40686b42 authored by Francis Dupont's avatar Francis Dupont
Browse files

[898-add-a-new-hook-to-support-bootp] Checkpoint: reviewed change and...

[898-add-a-new-hook-to-support-bootp] Checkpoint: reviewed change and addressed comment, to do import BOOTP class stuff from !522
parent 4d1cfb15
.. _hooks-bootp:
.. _bootp-library:
BOOTP support
=============
......
......@@ -40,7 +40,6 @@ int buffer4_receive(CalloutHandle& handle) {
if (copy->getType() != DHCP_NOTYPE) {
// DHCP query.
query->addClass("DHCP");
return (0);
}
if (copy->getOp() == BOOTREPLY) {
......
......@@ -124,7 +124,7 @@ TEST_F(BootpTest, dhcpOffer) {
TEST_F(BootpTest, bootReply) {
// The constructor does not allow to directly create a BOOTREPLY packet.
Pkt4Ptr pkt(new Pkt4(DHCPOFFER, 12345));
//pkt->setType(DHCP_NOTYPE);
pkt->setType(DHCP_NOTYPE);
pkt->delOption(DHO_DHCP_MESSAGE_TYPE);
ASSERT_EQ(BOOTREPLY, pkt->getOp());
calloutsCall(pkt, false);
......@@ -134,7 +134,7 @@ TEST_F(BootpTest, bootReply) {
TEST_F(BootpTest, bootRequest) {
// The constructor does not allow to directly create a BOOTREQUEST packet.
Pkt4Ptr pkt(new Pkt4(DHCPDISCOVER, 12345));
// pkt->setType(DHCP_NOTYPE);
pkt->setType(DHCP_NOTYPE);
pkt->delOption(DHO_DHCP_MESSAGE_TYPE);
ASSERT_EQ(BOOTREQUEST, pkt->getOp());
calloutsCall(pkt, true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment