MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / DHCPHeader

Class DHCPHeader

Kernel/include/net/dhcp.h:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29struct DHCPHeader {
30 uint8_t op; // Operation code
31 uint8_t htype; // Hardware type (1 = Ethernet)
32 uint8_t hlen; // Length of hardware addresses (6 = MAC)
33 uint8_t hops;
34 BigEndianUInt32 xID; // Transmission ID
35 BigEndianUInt16 secs;
36 BigEndianUInt16 flags; // Flags
37 IPv4Address clientIP; // Client's IP Address if known
38 IPv4Address yourIP; // IP Address assigned to client
39 IPv4Address serverIP; // Server IP Address
40 IPv4Address gatewayIP; // Gateway IP Address
41 uint8_t clientAddress[16]; // Client Hardware Address
42 int8_t serverName[64]; // Server name
43 uint8_t bootFilename[128];
44 BigEndianUInt32 cookie;
45 uint8_t options[16];
46} __attribute__((packed));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected