dhcp_utils.c | 51 void get_p2p_interface_replacement(const char *interface, char *p2p_interface) { 54 strncpy(p2p_interface, "p2p", MAX_INTERFACE_LENGTH); 56 strncpy(p2p_interface, interface, MAX_INTERFACE_LENGTH); 101 char p2p_interface[MAX_INTERFACE_LENGTH]; local 104 get_p2p_interface_replacement(interface, p2p_interface); 106 snprintf(prop_name, sizeof(prop_name), "%s.%s.ipaddress", DHCP_PROP_NAME_PREFIX, p2p_interface); 109 snprintf(prop_name, sizeof(prop_name), "%s.%s.gateway", DHCP_PROP_NAME_PREFIX, p2p_interface); 112 snprintf(prop_name, sizeof(prop_name), "%s.%s.server", DHCP_PROP_NAME_PREFIX, p2p_interface); 121 snprintf(prop_name, sizeof(prop_name), "%s.%s.mask", DHCP_PROP_NAME_PREFIX, p2p_interface); 145 snprintf(prop_name, sizeof(prop_name), "%s.%s.dns%d", DHCP_PROP_NAME_PREFIX, p2p_interface, x+1) 204 char p2p_interface[MAX_INTERFACE_LENGTH]; local 268 char p2p_interface[MAX_INTERFACE_LENGTH]; local 301 char p2p_interface[MAX_INTERFACE_LENGTH]; local 346 char p2p_interface[MAX_INTERFACE_LENGTH]; local [all...] |