...
Code Block | ||
---|---|---|
| ||
res = goal_eipCfgAcdOn(GOAL_TRUE); |
goal_
...
eipCfgAcdConflictFallbackIp
Configure Behavior Fallback IP Configration, if Address Conflict Detection (ACD) detects an address conflict. There are three configurations possible, where DHCP is prioritized:The device will apply the configured IP, if it’s configured as device with static IP. If attribute 3 of the TCP/IP Class is set to DHCP, the device will start the DHCP process after a fixed timeout.
Transit into error state and do nothing: pass ipAddress = 0 and flgDhcpEnable = GOAL_FALSE,
Set fallback IP configuration: pass valid IP configuration and flgDhcpEnable = GOAL_FALSE,
Get IP per DHCP: pass flgDhcpEnable = GOAL_TRUE.
...
Parameter | Description | ||
---|---|---|---|
uint32_t ipAddress | fallback IP address | ||
uint32_t subnetMask | fallback subnet mask | ||
uint32_t gateway | fallback gateway address | GOAL_BOOL_T flgDhcpEnable | enable or disable DHCP |
Table: goal_eipCfgAcdConflictBehavior
Code Block | ||
---|---|---|
| ||
uint32_t ipAddress = GOAL_NET_IPV4(192, 168, 0, 100); uint32_t subnetMask = GOAL_NET_IPV4(255, 255, 255, 0); uint32_t gateway = GOAL_NET_IPV4(192, 168, 0, 1); GOAL_BOOL_T flgDhcpEnable = GOAL_FALSE; res = goal_eipCfgAcdConflictBehavioreipCfgAcdConflictFallbackIp(ipAddress, subnetMask, gateway, flgDhcpEnable); |