Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added configuration of Address Conflict Detection.

...

Code Block
languagec
res = goal_eipCfgAcdOn(GOAL_TRUE);

goal_eipCfgAcdConflictBehavior

Configure Behavior if Address Conflict Detection (ACD) detects an address conflict. There are three configurations possible, where DHCP is prioritized:

  • 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.

Default Value: 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_eipCfgAcdOn

Code Block
languagec
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_eipCfgAcdConflictBehavior(ipAddress, subnetMask, gateway, flgDhcpEnable);