Hi. > When is coldplug_interface_* actually being called?
On boot, by /etc/init.d/network. If an interface is found with .auto != 0 and a protocol that implements coldplug_*, then it is called. This is required for "virtual" interfaces like 6in4 tunnels that create their own (tuntap) ifaces and have no physical interface like eth0 associated. > As far as I've understood I should not specify the .ifname in > my new config section but I should rather set the .device > in the scan_interface_* function. The only reason I set .device was to make setup_interface() and friends happy. The generic functions silently skip ifaces with no .device set. > Is it fine if I do not set the > .ifname option? Yes it is. For example 6in4 and pptp now totally ignore the .ifname option since they construct their ifname out of the protocol and section name to make it predicatable without keeping track of the units of externally created ifaces like ppp0, ppp1, .... - they're now called pptp-wan, 6in4-lan etc. ~ Jow _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
