Package: libwvstreams4.0-extras Version: 4.0.1-1.3 Severity: normal Tags: patch
The SmartLink software modem (sl-modem-daemon) presents it's modem interface on a pty, but the WvModem class's dependency on TIOCGSERIAL prevents it's use on ptys such as /dev/pts/0. This renders wvdial unusable from SmartLink software modems. The patch shown below has been tested successfully on my laptop. --- wvmodem-401-13.cc 2005-02-08 00:02:00 -0800 +++ wvmodem.cc 2005-02-28 02:53:00 -0800 @@ -189,29 +189,28 @@ drain(); #if HAVE_LINUX_SERIAL_H struct serial_struct old_sinfo, sinfo; sinfo.reserved_char[0] = 0; - if (ioctl(getrfd(), TIOCGSERIAL, &old_sinfo) < 0) + if (ioctl(getrfd(), TIOCGSERIAL, &old_sinfo) >= 0) { - seterr("Cannot get information for serial port."); - return; - } + // No need to set information if we're a pty (software modem). sinfo = old_sinfo; // Why there are two closing wait timeouts, is beyond me // but there are... apparently the second one is deprecated // but why take a chance... sinfo.closing_wait = ASYNC_CLOSING_WAIT_NONE; sinfo.closing_wait2 = ASYNC_CLOSING_WAIT_NONE; if (ioctl(getrfd(), TIOCSSERIAL, &sinfo) < 0 && getuid() == 0) { seterr("Cannot set information for serial port."); return; } + } #endif // set up the terminal characteristics. // see "man tcsetattr" for more information about these options. t.c_iflag &= ~(BRKINT | ISTRIP | IUCLC | IXON | IXANY | IXOFF | IMAXBEL); t.c_iflag |= (IGNBRK | IGNPAR); -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-386 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages libwvstreams4.0-extras depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libfam0c102 2.7.0-6 client library to control the FAM ii libpam0g 0.76-22 Pluggable Authentication Modules l ii libslp1 1.0.11a-1 OpenSLP libraries ii libssl0.9.7 0.9.7e-2 SSL shared libraries ii libwvstreams4.0-base 4.0.1-1.3 C++ network libraries for rapid ap ii libxplc0.3.10 0.3.10-3.1 Light weight component system ii zlib1g 1:1.2.2-3 compression library - runtime -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]