class IPv4Configuration

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
ip_addressuint32IPv4 address
subnet_maskuint32IPv4 subnet mask
default_gatewayuint32Gateway IPv4 address
dhcp_enabledboolEnable automatic (DHCP) IPv4 configuration. Set to true to enable DHCP instead of static configuration.

Member functions

Function nameReturn typeInput typeDescription
ip_address()uint32voidReturns the current value of ip_address. If the ip_address is not set, returns 0.
set_ip_address()voiduint32Sets the value of ip_address. After calling this, ip_address() will return value.
clear_ip_address()voidvoidClears the value of ip_address. After calling this, ip_address() will return 0.
subnet_mask()uint32voidReturns the current value of subnet_mask. If the subnet_mask is not set, returns 0.
set_subnet_mask()voiduint32Sets the value of subnet_mask. After calling this, subnet_mask() will return value.
clear_subnet_mask()voidvoidClears the value of subnet_mask. After calling this, subnet_mask() will return 0.
default_gateway()uint32voidReturns the current value of default_gateway. If the default_gateway is not set, returns 0.
set_default_gateway()voiduint32Sets the value of default_gateway. After calling this, default_gateway() will return value.
clear_default_gateway()voidvoidClears the value of default_gateway. After calling this, default_gateway() will return 0.
dhcp_enabled()boolvoidReturns the current value of dhcp_enabled. If the dhcp_enabled is not set, returns 0.
set_dhcp_enabled()voidboolSets the value of dhcp_enabled. After calling this, dhcp_enabled() will return value.
clear_dhcp_enabled()voidvoidClears the value of dhcp_enabled. After calling this, dhcp_enabled() will return 0.

Parent topic: Base (C++)