dhcp_client->interface = get_interface_name(ifindex);
if (dhcp_client->interface == NULL) {
- *error = G_DHCP_CLIENT_ERROR_INERFACE_UNAVAILABLE;
+ *error = G_DHCP_CLIENT_ERROR_INTERFACE_UNAVAILABLE;
goto error;
}
typedef enum {
G_DHCP_CLIENT_ERROR_NONE,
- G_DHCP_CLIENT_ERROR_INERFACE_UNAVAILABLE,
+ G_DHCP_CLIENT_ERROR_INTERFACE_UNAVAILABLE,
G_DHCP_CLIENT_ERROR_INTERFACE_IN_USE,
G_DHCP_CLIENT_ERROR_INTERFACE_DOWN,
G_DHCP_CLIENT_ERROR_NOMEM,
case G_DHCP_CLIENT_ERROR_NONE:
printf("dhcp client ok\n");
break;
- case G_DHCP_CLIENT_ERROR_INERFACE_UNAVAILABLE:
+ case G_DHCP_CLIENT_ERROR_INTERFACE_UNAVAILABLE:
printf("Interface unavailable\n");
break;
case G_DHCP_CLIENT_ERROR_INTERFACE_IN_USE: