return NULL;
}
+static void if_names_add(const char *ifname)
+{
+ struct iname *new = opt_malloc(sizeof(struct iname));
+ new->next = daemon->if_names;
+ daemon->if_names = new;
+ /* new->name may be NULL if someone does
+ "interface=" to disable all interfaces except loop. */
+ new->name = opt_string_alloc(ifname);
+ new->flags = 0;
+}
+
#ifdef HAVE_DHCP
static int is_tag_prefix(char *arg)
free(opt);
}
-static void if_names_add(const char *ifname)
-{
- struct iname *new = opt_malloc(sizeof(struct iname));
- new->next = daemon->if_names;
- daemon->if_names = new;
- /* new->name may be NULL if someone does
- "interface=" to disable all interfaces except loop. */
- new->name = opt_string_alloc(ifname);
- new->flags = 0;
-}
-
/* This is too insanely large to keep in-line in the switch */
static int parse_dhcp_opt(char *errstr, char *arg, int flags)
{