summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/physical.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-04-03 11:54:00 +0000
committerbrian <brian@FreeBSD.org>1999-04-03 11:54:00 +0000
commit5db8066ee9cdb955373c32193af6f95f65e204fb (patch)
treea9278079799020a63ed0219bfde87099a328fb4f /usr.sbin/ppp/physical.h
parentaffd55a23b9e3a35ceccf2ae330484d3cd15000d (diff)
downloadFreeBSD-src-5db8066ee9cdb955373c32193af6f95f65e204fb.zip
FreeBSD-src-5db8066ee9cdb955373c32193af6f95f65e204fb.tar.gz
Handle the detection of frames even if we read them
with more than one read(). When we detect one, don't forget to pass it to async_Input() and drop our terminal back into command mode. Don't output an extraneous \r if we're passed \r\n to prompt_vprintf in raw mode.
Diffstat (limited to 'usr.sbin/ppp/physical.h')
-rw-r--r--usr.sbin/ppp/physical.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ppp/physical.h b/usr.sbin/ppp/physical.h
index b2ce016..b233c75 100644
--- a/usr.sbin/ppp/physical.h
+++ b/usr.sbin/ppp/physical.h
@@ -16,7 +16,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: physical.h,v 1.5 1999/01/10 01:26:30 brian Exp $
+ * $Id: physical.h,v 1.6 1999/02/16 00:16:56 brian Exp $
*
*/
@@ -36,6 +36,11 @@ struct physical {
struct datalink *dl; /* my owner */
struct {
+ u_char buf[MAX_MRU]; /* Our input data buffer */
+ size_t sz;
+ } input;
+
+ struct {
char full[40];
char *base;
} name;
OpenPOWER on IntegriCloud