struct {
enum connman_ipconfig_method method;
gchar *address;
- gchar *peer;
- gchar *netmask;
- gchar *gateway;
- gchar *network;
- gchar *broadcast;
- gchar *nameserver;
- gchar *timeserver;
- gchar *pac;
- } ipv4;
-
- struct {
- enum connman_ipconfig_method method;
- gchar *address;
int prefix_len;
gchar *gateway;
gchar *network;
connman_element_set_string(&device->element,
CONNMAN_PROPERTY_ID_TYPE, str);
- device->element.ipv4.method = CONNMAN_IPCONFIG_METHOD_DHCP;
-
device->type = type;
device->name = g_strdup(type2description(device->type));
struct connman_service *service;
struct connman_ipconfig *ipconfig;
- network->element.ipv4.method = method;
-
service = __connman_service_lookup_from_network(network);
if (service == NULL)
return;