From: Harlan Stenn Date: Fri, 17 Mar 2006 09:22:39 +0000 (-0500) Subject: Set c_iflag=0 for RAW mode X-Git-Tag: NTP_4_2_1P10_RC~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43f2f50cca9970f07d671d5acc264f94f591c69;p=thirdparty%2Fntp.git Set c_iflag=0 for RAW mode bk: 441a7fdfx26Vcm47buycA8EzQZAKPw --- diff --git a/ntpd/ntp_refclock.c b/ntpd/ntp_refclock.c index c260571df..a29ef085e 100644 --- a/ntpd/ntp_refclock.c +++ b/ntpd/ntp_refclock.c @@ -890,6 +890,7 @@ refclock_setup( ttyp->c_lflag = ICANON; if (lflags & LDISC_RAW) { ttyp->c_lflag = 0; + ttyp->c_iflag = 0; ttyp->c_cc[VMIN] = 1; } if (lflags & LDISC_ECHO) @@ -952,6 +953,7 @@ refclock_setup( ttyp->c_lflag = ICANON; if (lflags & LDISC_RAW) { ttyp->c_lflag = 0; + ttyp->c_iflag = 0; ttyp->c_cc[VMIN] = 1; } if (ioctl(fd, TCSETA, ttyp) < 0) {