Changeset 028bf82 in rtems-libbsd for rtemsbsd/rtems/rtems-bsd-rc-conf-net.c


Ignore:
Timestamp:
Aug 2, 2018, 8:23:15 AM (11 months ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
baffbf3
Parents:
c7eec93
git-author:
Christian Mauderer <christian.mauderer@…> (08/02/18 08:23:15)
git-committer:
Christian Mauderer <christian.mauderer@…> (08/02/18 08:32:24)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-bsd-rc-conf-net.c

    rc7eec93 r028bf82  
    746746  bool            dhcp = false;
    747747
     748  show_result("cloned_interfaces", cloned_interfaces(rc_conf, aa));
     749
    748750  if (getifaddrs(&ifap) != 0) {
    749751    fprintf(stderr, "error: interfaces: getifaddrs: %s\n", strerror(errno));
     
    752754
    753755  list_interfaces("Starting network: ", ifap);
    754   show_result("cloned_interfaces", cloned_interfaces(rc_conf, aa));
    755756  show_result("lo0", setup_lo0(rc_conf, ifap));
    756757  show_result("ifaces", setup_interfaces(rc_conf, aa, ifap, &dhcp));
Note: See TracChangeset for help on using the changeset viewer.