+ struct interface *interface = interface_first;
+
+ while (interface) {
+ if (!strcmp(interface->name, p_g_interface_name))
+ break;
+ interface = interface->next;
+ }
+ if (!interface) {
+ PERROR("Cannot find interface %s.\n", p_g_interface_name);
+ return;
+ }