Lines Matching refs:uint8_t
28 Message(const uint8_t* data, size_t size);
29 static Message discover(const uint8_t (&sourceMac)[ETH_ALEN]);
30 static Message request(const uint8_t (&sourceMac)[ETH_ALEN],
50 bool isValidDhcpMessage(uint8_t expectedOp) const;
53 bool isValidDhcpMessage(uint8_t expectedOp, uint32_t expectedXid) const;
55 const uint8_t* data() const { in data()
56 return reinterpret_cast<const uint8_t*>(&dhcpData); in data()
58 uint8_t* data() { in data()
59 return reinterpret_cast<uint8_t*>(&dhcpData); in data()
61 const uint8_t* end() const { return data() + mSize; } in end()
69 uint8_t type() const;
76 uint8_t op; /* BOOTREQUEST / BOOTREPLY */
77 uint8_t htype; /* hw addr type */
78 uint8_t hlen; /* hw addr len */
79 uint8_t hops; /* client set to 0 */
92 uint8_t chaddr[16]; /* client hw addr */
96 uint8_t options[1024]; /* optional parameters */
99 Message(uint8_t operation,
100 const uint8_t (&macAddress)[ETH_ALEN],
101 uint8_t type);
103 void addOption(uint8_t type, const void* data, uint8_t size);
105 void addOption(uint8_t type, T data) { in addOption()
110 void addOption(uint8_t type, T (&items)[N]) { in addOption()
113 uint8_t* opts = nextOption(); in addOption()
124 const uint8_t* getOption(uint8_t optCode, uint8_t* length) const;
125 uint8_t* nextOption();
126 void updateSize(uint8_t* optionsEnd);