Embedded TCP/IP stack: fnet_netif_set_ip4_gateway

FNET

void fnet_netif_set_ip4_gateway ( fnet_netif_desc_t  netif_desc,
fnet_ip4_addr_t  gw 
)

Sets the gateway IP address of the specified network interface.

Parameters
netif_descNetwork interface descriptor.
gwThe gateway IP address of the network interface.
See also
fnet_netif_get_ip4_gateway()

This function sets the gateway IP address of the netif interface to the gw value.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net