… | |
… | |
174 | if (ether_emu.tap_to_tun (pkt) && |
174 | if (ether_emu.tap_to_tun (pkt) && |
175 | write (fd, &((*pkt)[14]), pkt->len - 14) < 0) |
175 | write (fd, &((*pkt)[14]), pkt->len - 14) < 0) |
176 | #else |
176 | #else |
177 | if (write (fd, &((*pkt)[0]), pkt->len) < 0) |
177 | if (write (fd, &((*pkt)[0]), pkt->len) < 0) |
178 | #endif |
178 | #endif |
179 | slog (L_ERR, _("can't write to %s %s: %s"), info (), DEFAULT_DEVICE, |
179 | slog (L_ERR, _("can't write %d byte packet to %s %s: %s"), pkt->len, info (), DEFAULT_DEVICE, |
180 | strerror (errno)); |
180 | strerror (errno)); |
181 | } |
181 | } |
182 | |
182 | |