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.1 by pcg, Sat Mar 1 15:53:03 2003 UTC vs.
Revision 1.2 by pcg, Sat Mar 8 10:48:41 2003 UTC

72 { 72 {
73 slog (L_CRIT, _("unable to configure tun/tap interface: %s"), strerror (errno)); 73 slog (L_CRIT, _("unable to configure tun/tap interface: %s"), strerror (errno));
74 exit (1); 74 exit (1);
75 } 75 }
76 76
77 if (conf.ifpersist)
78 if (ioctl (fd, TUNSETPERSIST, 1)) 77 if (ioctl (fd, TUNSETPERSIST, conf.ifpersist ? 1 : 0))
79 slog (L_WARN, _("cannot set persistent mode for device %s: %s"), ifrname, strerror (errno)); 78 slog (L_WARN, _("cannot set persistency mode for device %s: %s"), ifrname, strerror (errno));
80 79
81 slog (L_DEBUG, _("%s is a %s"), device, info ()); 80 slog (L_DEBUG, _("%s is a %s"), device, info ());
82} 81}
83 82
84tap_device::~tap_device () 83tap_device::~tap_device ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines