Re: pppd and ioctl(TIOCSETD) (was: CVS: cvs.openbsd.org: src)
On Tue, 22 Dec 2015, David Coppa wrote: > I suspect this broke my 3G connection: Oops. Sorry. Try this diff (already committed): --- sys/kern/tty_conf.c +++ sys/kern/tty_conf.c @@ -42,6 +42,11 @@ #include #include +#include "ppp.h" +#include "nmea.h" +#include "msts.h" +#include "endrun.h" + #definettynodisc ((int (*)(dev_t, struct tty *, struct proc *))enodev) #definettyerrclose ((int (*)(struct tty *, int flags, struct proc *))enodev) #definettyerrio ((int (*)(struct tty *, struct uio *, int))enodev)
pppd and ioctl(TIOCSETD) (was: CVS: cvs.openbsd.org: src)
On Mon, 21 Dec 2015, Stefan Fritsch wrote: > CVSROOT: /cvs > Module name: src > Changes by: s...@cvs.openbsd.org2015/12/21 14:49:03 > > Modified files: > sys/kern : tty_conf.c tty_endrun.c tty_msts.c tty_nmea.c > sys/net: ppp_tty.c > sys/sys: tty.h > > Log message: > Move ppp, nmea, endrun, and msts prototypes to tty.h > > Fix inconsistent arguments for pppopen/pppclose/pppstart. > Use passed in argument p in pppopen instead of curproc. > > "Looks good to me" deraadt@ I suspect this broke my 3G connection: Dec 22 13:22:51 t420 chat[16397]: send (ATDT*99***1#^M) Dec 22 13:22:52 t420 chat[16397]: timeout set to 30 seconds Dec 22 13:22:52 t420 chat[16397]: expect (CONNECT) Dec 22 13:22:52 t420 chat[16397]: ^M Dec 22 13:22:52 t420 chat[16397]: ^M Dec 22 13:22:52 t420 chat[16397]: CONNECT Dec 22 13:22:52 t420 chat[16397]: -- got it Dec 22 13:22:52 t420 chat[16397]: send (\\d) Dec 22 13:22:53 t420 pppd[12116]: Serial connection established. Dec 22 13:22:54 t420 pppd[12116]: ioctl(TIOCSETD): Operation not supported by device I start this connection using: /usr/sbin/pppd file /etc/ppp/peers/postemobile And it always worked w/o problems until now. It's a -current from ~1 hour ago: $ sysctl kern.version kern.version=OpenBSD 5.9-beta (GENERIC.MP) #0: Tue Dec 22 12:08:24 CET 2015 dco...@t420.bsdgeek.it:/usr/src/sys/arch/amd64/compile/GENERIC.MP Ideas? TIA! David