ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device-linux.C
(Generate patch)

Comparing gvpe/src/device-linux.C (file contents):
Revision 1.18 by pcg, Thu Aug 7 17:54:26 2008 UTC vs.
Revision 1.19 by root, Thu Jan 29 00:21:39 2015 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines