CTL_NET_IPv4_ADDR_t ctl_net_get_gateway_address(void);
ctl_net_get_gateway_address returns returns the gateway (local router's) IP address as set in the CTL_IP_CONFIG_t configuration passed to ctl_net_init or retrieved from a DHCP server.
If IP addresses are assigned by DHCP, ctl_net_get_gateway_address will returns an all-zero IP address whilst IP negotiation is in progress.
ctl_net_get_gateway_address is thread-safe.