summaryrefslogtreecommitdiff
path: root/sys/net/if_sppp.h
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2004-11-28 23:39:46 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2004-11-28 23:39:46 +0000
commit21bc148fb19bda21c314e0e1f9b34eac9a13cc8a (patch)
treea94aa3b32a2e9452fd7636a18a0d69f0b47c8525 /sys/net/if_sppp.h
parent9b02e944d8a1968fe39ff654b9f987ed838daed2 (diff)
In kernel pppoe client, a simple IPv4 only implementation.
Initial porting from NetBSD by David Berghoff. Modified/simplified to match our sppp implementation. ok deraadt@
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r--sys/net/if_sppp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h
index dbe38fd2f44..171012a7d9b 100644
--- a/sys/net/if_sppp.h
+++ b/sys/net/if_sppp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sppp.h,v 1.6 2002/09/26 20:43:54 chris Exp $ */
+/* $OpenBSD: if_sppp.h,v 1.7 2004/11/28 23:39:45 canacar Exp $ */
/* $NetBSD: if_sppp.h,v 1.2.2.1 1999/04/04 06:57:39 explorer Exp $ */
/*
@@ -104,7 +104,8 @@ struct sppp {
struct ifqueue pp_cpq; /* PPP control protocol queue */
struct sppp *pp_next; /* next interface in keepalive list */
u_int pp_flags; /* use Cisco protocol instead of PPP */
- u_short pp_alivecnt; /* keepalive packets counter */
+ u_int pp_framebytes; /* number of bytes added by hardware framing */
+ u_short pp_alivecnt; /* keepalive packets counter */
u_short pp_loopcnt; /* loopback detection counter */
u_long pp_seq; /* local sequence number */
u_long pp_rseq; /* remote sequence number */
@@ -153,7 +154,9 @@ struct sppp {
/* 0x04 was PP_TIMO */
#define PP_CALLIN 0x08 /* we are being called */
#define PP_NEEDAUTH 0x10 /* remote requested authentication */
-
+#define PP_NOFRAMING 0x20 /* do not add/expect encapsulation
+ around PPP frames (i.e. the serial
+ HDLC like encapsulation, RFC1662) */
#define PP_MTU 1500 /* default/minimal MRU */
#define PP_MAX_MRU 2048 /* maximal MRU we want to negotiate */