Commit 81248d9e authored by Alessandro Rubini's avatar Alessandro Rubini

lib/conf.c: the interface name should default to the port name

This is already in place for arch-unix, but is not working for arch-wrs
because we need to look for the interface name before opening it.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 95d92a1b
......@@ -48,6 +48,7 @@ static int f_port(struct pp_argline *l, int lineno, struct pp_globals *ppg,
/* FIXME: strncpy (it is missing in bare archs by now) */
strcpy(CUR_PPI(ppg)->cfg.port_name, arg->s);
strcpy(CUR_PPI(ppg)->cfg.iface_name, arg->s); /* default iface name */
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment