Partage via


Networking_IpConfig_EnableStaticIp, fonction

En-tête : #include <applibs/networking.h>

Active l’adresse IP statique et désactive l’adresse IP dynamique pour un struct Networking_IpConfig .

void Networking_IpConfig_EnableStaticIp(Networking_IpConfig *ipConfig, struct in_addr ipAddress, struct in_addr subnetMask, struct in_addr gatewayAddress);

Paramètres

  • ipConfig Pointeur vers le struct Networking_IpConfig à mettre à jour.

  • ipAddress Adresse IP statique.

  • subnetMask Masque de sous-réseau statique.

  • gatewayAddress Adresse de passerelle statique.

Concepts et exemples