🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #179

Re: Serial overruns & ppp - how do I know if I ever have them?

#179
From: James Youngman
Date: Mon, 16 Mar 1998 00:00
34 lines
1392 bytes

If your serial port line discipline is "normal tty", then this
happens:-

/* linux/drivers/char/n_tty.c 
 */
static inline void n_tty_receive_overrun(struct tty_struct *tty)
{
	char buf[64];

	tty->num_overrun++;
	if (tty->overrun_time < (jiffies - HZ)) {
		printk("%s: %d input overrun(s)\n", _tty_name(tty, buf),
		       tty->num_overrun);
		tty->overrun_time = jiffies;
		tty->num_overrun = 0;
	}
}




For PPP, you may or may not get this warning (linux/drivers/net/ppp.c):-

	if (ppp->toss) {
		if (ppp->flags & SC_DEBUG)
			printk (KERN_WARNING
				"ppp_toss: tossing frame, reason = %d\n",
				ppp->toss);
		ppp->stats.ppp_ierrors++;
		return 0;
	}
Look for reason 4 (TTY_OVERRUN from serial.h)
Technical Details
Message-ID: <u1afaqpym0.fsf@noisy.vggas.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn6gljd1.q2.$julies/newsreply$@merp.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d8ad,aa178d641ebc8451
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: 108f6a,aa178d641ebc8451
X-Google-Attributes: gid108f6a,public
From: James Youngman <JYoungman@vggas.com>
Subject: Re: Serial overruns & ppp - how do I know if I ever have them?
Date: 1998/03/16
Message-ID: <u1afaqpym0.fsf@noisy.vggas.com>
X-Deja-AN: 334545365
Sender: james@noisy.vggas.com
References: <slrn6gljd1.q2.$julies/newsreply$@merp.demon.co.uk>
To: $julies/newsreply$@merp.demon.co.uk (DON'T edit this)
Organization: VG Gas Analysis Systems
Newsgroups: uk.comp.os.linux,demon.ip.support.unix