/* Load all necessary module so that interfaces do exist. This is necessary for system that are fully modular when doing the boot time processing, because we need to run before 'ifup -a'. Probe interfaces based on our list of mappings. This is the default, but usually not the best way to do it.  */
static void probe_mappings(int skfd)
/* Load all necessary module so that interfaces do exist. This is necessary for system that are fully modular when doing the boot time processing, because we need to run before 'ifup -a'. Probe interfaces based on our list of mappings. This is the default, but usually not the best way to do it.  */
static void probe_mappings(int skfd)
{
  struct if_mapping *	ifnode;
  struct ifreq		ifr;
  for(ifnode = mapping_list; ifnode != NULL; ifnode = ifnode->next)
    {
      if(strchr(ifnode->ifname, '%') != NULL)
	continue;
      if(verbose)
	fprintf(stderr, "Probing : Trying to load interface [%s]\n",
		ifnode->ifname);
      strncpy(ifr.ifr_name, ifnode->ifname, IFNAMSIZ);
      ioctl(skfd, SIOCGIFHWADDR, &ifr);
    }
}