… | |
… | |
99 | slog (L_CRIT, _("unable to configure tun/tap interface, exiting: %s"), strerror (errno)); |
99 | slog (L_CRIT, _("unable to configure tun/tap interface, exiting: %s"), strerror (errno)); |
100 | exit (EXIT_FAILURE); |
100 | exit (EXIT_FAILURE); |
101 | } |
101 | } |
102 | |
102 | |
103 | #if 0 |
103 | #if 0 |
104 | doesn't work |
104 | does not work |
105 | id2mac (THISNODE->id, &ifr.ifr_hwaddr.sa_data); |
105 | id2mac (THISNODE->id, &ifr.ifr_hwaddr.sa_data); |
106 | if (ioctl (fd, SIOCSIFHWADDR, &ifr)) |
106 | if (ioctl (fd, SIOCSIFHWADDR, &ifr)) |
107 | { |
107 | { |
108 | slog (L_ERR, _("cannot set MAC address for device %s, exiting: %s"), ifrname, strerror (errno)); |
108 | slog (L_ERR, _("cannot set MAC address for device %s, exiting: %s"), ifrname, strerror (errno)); |
109 | exit (EXIT_FAILURE); |
109 | exit (EXIT_FAILURE); |