mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-04 00:05:11 +08:00
rc.conf: Fix cloned interface setup.
The cloned interfaces have to be set up befor the interface list is created. Otherwise it's not possible to configure a cloned interface with a `ifconfig_gifX` line.
This commit is contained in:
parent
c7eec93e3c
commit
028bf82f6d
@ -745,13 +745,14 @@ interfaces(rtems_bsd_rc_conf* rc_conf, rtems_bsd_rc_conf_argc_argv* aa)
|
||||
struct ifaddrs* ifap;
|
||||
bool dhcp = false;
|
||||
|
||||
show_result("cloned_interfaces", cloned_interfaces(rc_conf, aa));
|
||||
|
||||
if (getifaddrs(&ifap) != 0) {
|
||||
fprintf(stderr, "error: interfaces: getifaddrs: %s\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
list_interfaces("Starting network: ", ifap);
|
||||
show_result("cloned_interfaces", cloned_interfaces(rc_conf, aa));
|
||||
show_result("lo0", setup_lo0(rc_conf, ifap));
|
||||
show_result("ifaces", setup_interfaces(rc_conf, aa, ifap, &dhcp));
|
||||
show_result("vlans", setup_vlans(rc_conf, aa, ifap, &dhcp));
|
||||
|
Loading…
x
Reference in New Issue
Block a user