We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da893aa commit 6d5055dCopy full SHA for 6d5055d
1 file changed
test/net/unit/dhcp_message_test.cpp
@@ -32,16 +32,17 @@ struct test_opt
32
// Creates a DHCP DISCOVERY message on the buffer
33
net::dhcp::Message* create_discovery_msg(uint8_t* buffer)
34
{
35
+ using namespace net;
36
using namespace net::dhcp;
37
auto* msg = reinterpret_cast<Message*>(buffer);
38
39
msg->op = static_cast<uint8_t>(op_code::BOOTREQUEST);
40
msg->htype = static_cast<uint8_t>(htype::ETHER);
41
msg->hlen = ETH_ALEN;
42
msg->hops = 0;
- msg->xid = net::htonl(322420);
43
+ msg->xid = htonl(322420);
44
msg->secs = 0;
- msg->flags = net::htons(static_cast<uint16_t>(flag::BOOTP_BROADCAST));
45
+ msg->flags = htons(static_cast<uint16_t>(flag::BOOTP_BROADCAST));
46
msg->ciaddr = 0;
47
msg->yiaddr = 0;
48
msg->siaddr = 0;
0 commit comments