PcapPlusPlus  Next
pcpp::dhcp_header Struct Reference

#include <DhcpLayer.h>

Public Attributes

uint8_t opCode
 BootP opcode.
 
uint8_t hardwareType
 Hardware type, set to 1 (Ethernet) by default.
 
uint8_t hardwareAddressLength
 Hardware address length, set to 6 (MAC address length) by default.
 
uint8_t hops
 Hop count.
 
uint32_t transactionID
 DHCP/BootP transaction ID.
 
uint16_t secondsElapsed
 The elapsed time, in seconds since the client sent its first BOOTREQUEST message.
 
uint16_t flags
 BootP flags.
 
uint32_t clientIpAddress
 Client IPv4 address.
 
uint32_t yourIpAddress
 Your IPv4 address.
 
uint32_t serverIpAddress
 Server IPv4 address.
 
uint32_t gatewayIpAddress
 Gateway IPv4 address.
 
uint8_t clientHardwareAddress [16]
 Client hardware address, by default contains the MAC address (only 6 first bytes are used)
 
uint8_t serverName [64]
 BootP server name.
 
uint8_t bootFilename [128]
 BootP boot file name.
 
uint32_t magicNumber
 DHCP magic number (set to the default value of 0x63538263)
 

Detailed Description

Represents a DHCP protocol header