PcapPlusPlus  21.05
DhcpLayer.h File Reference
#include "Layer.h"
#include "TLVData.h"
#include "IpAddress.h"
#include "MacAddress.h"
#include <string.h>

Go to the source code of this file.

Classes

struct  pcpp::dhcp_header
 
class  pcpp::DhcpOption
 
class  pcpp::DhcpOptionBuilder
 
class  pcpp::DhcpLayer
 

Namespaces

 pcpp
 The main namespace for the PcapPlusPlus lib.
 

Enumerations

enum  pcpp::BootpOpCodes { pcpp::DHCP_BOOTREQUEST = 1, pcpp::DHCP_BOOTREPLY = 2 }
 
enum  pcpp::DhcpMessageType {
  pcpp::DHCP_UNKNOWN_MSG_TYPE = 0, pcpp::DHCP_DISCOVER = 1, pcpp::DHCP_OFFER = 2, pcpp::DHCP_REQUEST = 3,
  pcpp::DHCP_DECLINE = 4, pcpp::DHCP_ACK = 5, pcpp::DHCP_NAK = 6, pcpp::DHCP_RELEASE = 7,
  pcpp::DHCP_INFORM = 8
}
 
enum  pcpp::DhcpOptionTypes {
  pcpp::DHCPOPT_UNKNOWN = -1, pcpp::DHCPOPT_PAD = 0, pcpp::DHCPOPT_SUBNET_MASK = 1, pcpp::DHCPOPT_TIME_OFFSET = 2,
  pcpp::DHCPOPT_ROUTERS = 3, pcpp::DHCPOPT_TIME_SERVERS = 4, pcpp::DHCPOPT_NAME_SERVERS = 5, pcpp::DHCPOPT_DOMAIN_NAME_SERVERS = 6,
  pcpp::DHCPOPT_LOG_SERVERS = 7, pcpp::DHCPOPT_QUOTES_SERVERS = 8, pcpp::DHCPOPT_LPR_SERVERS = 9, pcpp::DHCPOPT_IMPRESS_SERVERS = 10,
  pcpp::DHCPOPT_RESOURCE_LOCATION_SERVERS = 11, pcpp::DHCPOPT_HOST_NAME = 12, pcpp::DHCPOPT_BOOT_SIZE = 13, pcpp::DHCPOPT_MERIT_DUMP = 14,
  pcpp::DHCPOPT_DOMAIN_NAME = 15, pcpp::DHCPOPT_SWAP_SERVER = 16, pcpp::DHCPOPT_ROOT_PATH = 17, pcpp::DHCPOPT_EXTENSIONS_PATH = 18,
  pcpp::DHCPOPT_IP_FORWARDING = 19, pcpp::DHCPOPT_NON_LOCAL_SOURCE_ROUTING = 20, pcpp::DHCPOPT_POLICY_FILTER = 21, pcpp::DHCPOPT_MAX_DGRAM_REASSEMBLY = 22,
  pcpp::DEFAULT_IP_TTL = 23, pcpp::DHCPOPT_PATH_MTU_AGING_TIMEOUT = 24, pcpp::PATH_MTU_PLATEAU_TABLE = 25, pcpp::DHCPOPT_INTERFACE_MTU = 26,
  pcpp::DHCPOPT_ALL_SUBNETS_LOCAL = 27, pcpp::DHCPOPT_BROADCAST_ADDRESS = 28, pcpp::DHCPOPT_PERFORM_MASK_DISCOVERY = 29, pcpp::DHCPOPT_MASK_SUPPLIER = 30,
  pcpp::DHCPOPT_ROUTER_DISCOVERY = 31, pcpp::DHCPOPT_ROUTER_SOLICITATION_ADDRESS = 32, pcpp::DHCPOPT_STATIC_ROUTES = 33, pcpp::DHCPOPT_TRAILER_ENCAPSULATION = 34,
  pcpp::DHCPOPT_ARP_CACHE_TIMEOUT = 35, pcpp::DHCPOPT_IEEE802_3_ENCAPSULATION = 36, pcpp::DHCPOPT_DEFAULT_TCP_TTL = 37, pcpp::DHCPOPT_TCP_KEEPALIVE_INTERVAL = 38,
  pcpp::DHCPOPT_TCP_KEEPALIVE_GARBAGE = 39, pcpp::DHCPOPT_NIS_DOMAIN = 40, pcpp::DHCPOPT_NIS_SERVERS = 41, pcpp::DHCPOPT_NTP_SERVERS = 42,
  pcpp::DHCPOPT_VENDOR_ENCAPSULATED_OPTIONS = 43, pcpp::DHCPOPT_NETBIOS_NAME_SERVERS = 44, pcpp::DHCPOPT_NETBIOS_DD_SERVER = 45, pcpp::DHCPOPT_NETBIOS_NODE_TYPE = 46,
  pcpp::DHCPOPT_NETBIOS_SCOPE = 47, pcpp::DHCPOPT_FONT_SERVERS = 48, pcpp::DHCPOPT_X_DISPLAY_MANAGER = 49, pcpp::DHCPOPT_DHCP_REQUESTED_ADDRESS = 50,
  pcpp::DHCPOPT_DHCP_LEASE_TIME = 51, pcpp::DHCPOPT_DHCP_OPTION_OVERLOAD = 52, pcpp::DHCPOPT_DHCP_MESSAGE_TYPE = 53, pcpp::DHCPOPT_DHCP_SERVER_IDENTIFIER = 54,
  pcpp::DHCPOPT_DHCP_PARAMETER_REQUEST_LIST = 55, pcpp::DHCPOPT_DHCP_MESSAGE = 56, pcpp::DHCPOPT_DHCP_MAX_MESSAGE_SIZE = 57, pcpp::DHCPOPT_DHCP_RENEWAL_TIME = 58,
  pcpp::DHCPOPT_DHCP_REBINDING_TIME = 59, pcpp::DHCPOPT_VENDOR_CLASS_IDENTIFIER = 60, pcpp::DHCPOPT_DHCP_CLIENT_IDENTIFIER = 61, pcpp::DHCPOPT_NWIP_DOMAIN_NAME = 62,
  pcpp::DHCPOPT_NWIP_SUBOPTIONS = 63, pcpp::DHCPOPT_NIS_DOMAIN_NAME = 64, pcpp::DHCPOPT_NIS_SERVER_ADDRESS = 65, pcpp::DHCPOPT_TFTP_SERVER_NAME = 66,
  pcpp::DHCPOPT_BOOTFILE_NAME = 67, pcpp::DHCPOPT_HOME_AGENT_ADDRESS = 68, pcpp::DHCPOPT_SMTP_SERVER = 69, pcpp::DHCPOPT_POP3_SERVER = 70,
  pcpp::DHCPOPT_NNTP_SERVER = 71, pcpp::DHCPOPT_WWW_SERVER = 72, pcpp::DHCPOPT_FINGER_SERVER = 73, pcpp::DHCPOPT_IRC_SERVER = 74,
  pcpp::DHCPOPT_STREETTALK_SERVER = 75, pcpp::DHCPOPT_STDA_SERVER = 76, pcpp::DHCPOPT_USER_CLASS = 77, pcpp::DHCPOPT_DIRECTORY_AGENT = 78,
  pcpp::DHCPOPT_SERVICE_SCOPE = 79, pcpp::DHCPOPT_RAPID_COMMIT = 80, pcpp::DHCPOPT_FQDN = 81, pcpp::DHCPOPT_DHCP_AGENT_OPTIONS = 82,
  pcpp::DHCPOPT_ISNS = 83, pcpp::DHCPOPT_NDS_SERVERS = 85, pcpp::DHCPOPT_NDS_TREE_NAME = 86, pcpp::DHCPOPT_NDS_CONTEXT = 87,
  pcpp::DHCPOPT_BCMCS_CONTROLLER_DOMAIN_NAME_LIST = 88, pcpp::DHCPOPT_BCMCS_CONTROLLER_IPV4_ADDRESS = 89, pcpp::DHCPOPT_AUTHENTICATION = 90, pcpp::DHCPOPT_CLIENT_LAST_TXN_TIME = 91,
  pcpp::DHCPOPT_ASSOCIATED_IP = 92, pcpp::DHCPOPT_CLIENT_SYSTEM = 93, pcpp::DHCPOPT_CLIENT_NDI = 94, pcpp::DHCPOPT_LDAP = 95,
  pcpp::DHCPOPT_UUID_GUID = 97, pcpp::DHCPOPT_USER_AUTH = 98, pcpp::DHCPOPT_GEOCONF_CIVIC = 99, pcpp::DHCPOPT_PCODE = 100,
  pcpp::DHCPOPT_TCODE = 101, pcpp::DHCPOPT_NETINFO_ADDRESS = 112, pcpp::DHCPOPT_NETINFO_TAG = 113, pcpp::DHCPOPT_URL = 114,
  pcpp::DHCPOPT_AUTO_CONFIG = 116, pcpp::DHCPOPT_NAME_SERVICE_SEARCH = 117, pcpp::DHCPOPT_SUBNET_SELECTION = 118, pcpp::DHCPOPT_DOMAIN_SEARCH = 119,
  pcpp::DHCPOPT_SIP_SERVERS = 120, pcpp::DHCPOPT_CLASSLESS_STATIC_ROUTE = 121, pcpp::DHCPOPT_CCC = 122, pcpp::DHCPOPT_GEOCONF = 123,
  pcpp::DHCPOPT_V_I_VENDOR_CLASS = 124, pcpp::DHCPOPT_V_I_VENDOR_OPTS = 125, pcpp::DHCPOPT_OPTION_PANA_AGENT = 136, pcpp::DHCPOPT_OPTION_V4_LOST = 137,
  pcpp::DHCPOPT_OPTION_CAPWAP_AC_V4 = 138, pcpp::DHCPOPT_OPTION_IPV4_ADDRESS_MOS = 139, pcpp::DHCPOPT_OPTION_IPV4_FQDN_MOS = 140, pcpp::DHCPOPT_SIP_UA_CONFIG = 141,
  pcpp::DHCPOPT_OPTION_IPV4_ADDRESS_ANDSF = 142, pcpp::DHCPOPT_GEOLOC = 144, pcpp::DHCPOPT_FORCERENEW_NONCE_CAPABLE = 145, pcpp::DHCPOPT_RDNSS_SELECTION = 146,
  pcpp::DHCPOPT_STATUS_CODE = 151, pcpp::DHCPOPT_BASE_TIME = 152, pcpp::DHCPOPT_START_TIME_OF_STATE = 153, pcpp::DHCPOPT_QUERY_START_TIME = 154,
  pcpp::DHCPOPT_QUERY_END_TIME = 155, pcpp::DHCPOPT_DHCP_STATE = 156, pcpp::DHCPOPT_DATA_SOURCE = 157, pcpp::DHCPOPT_OPTION_V4_PCP_SERVER = 158,
  pcpp::DHCPOPT_OPTION_V4_PORTPARAMS = 159, pcpp::DHCPOPT_CAPTIVE_PORTAL = 160, pcpp::DHCPOPT_OPTION_MUD_URL_V4 = 161, pcpp::DHCPOPT_ETHERBOOT = 175,
  pcpp::DHCPOPT_IP_TELEPHONE = 176, pcpp::DHCPOPT_PXELINUX_MAGIC = 208, pcpp::DHCPOPT_CONFIGURATION_FILE = 209, pcpp::DHCPOPT_PATH_PREFIX = 210,
  pcpp::DHCPOPT_REBOOT_TIME = 211, pcpp::DHCPOPT_OPTION_6RD = 212, pcpp::DHCPOPT_OPTION_V4_ACCESS_DOMAIN = 213, pcpp::DHCPOPT_SUBNET_ALLOCATION = 220,
  pcpp::DHCPOPT_VIRTUAL_SUBNET_SELECTION = 221, pcpp::DHCPOPT_END = 255
}