Skip to content

Commit

Permalink
Make sure MACSize is declared in source too
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul committed Jan 5, 2024
1 parent 4781314 commit 6b05425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NetworkControl/DHCPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace WPEFramework {

namespace Plugin {

/* static */ constexpr uint8_t DHCPClient::MACSize;
/* static */ constexpr uint8_t DHCPClient::MagicCookie[];
static Core::NodeId BroadcastClientNode (_T("0.0.0.0"), DHCPClient::DefaultDHCPClientPort, Core::NodeId::TYPE_IPV4);
static Core::NodeId BroadcastServerNode (_T("255.255.255.255"), DHCPClient::DefaultDHCPServerPort, Core::NodeId::TYPE_IPV4);
Expand Down
2 changes: 1 addition & 1 deletion NetworkControl/DHCPClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace Plugin {


public:
static constexpr uint8_t MACSize = 6;
static constexpr uint8_t MACSize = UDPv4Frame::MACSize;

// DHCP constants (see RFC 2131 section 4.1)
static constexpr uint16_t DefaultDHCPServerPort = 67;
Expand Down

0 comments on commit 6b05425

Please sign in to comment.