summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/async.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-05-21 21:49:08 +0000
committerBrian Somers <brian@FreeBSD.org>1998-05-21 21:49:08 +0000
commitd91d286164db7f10f516a9d0bca0a3527e864714 (patch)
treed42fe77349e72dc800e8fbd2c8e2b8f200d35100 /usr.sbin/ppp/async.h
parent6cb0199d2346a87aeb63ba9355209029da769917 (diff)
parent641684cdbadb059ec03c02ffeb72040a9b1367d0 (diff)
downloadsrc-test2-d91d286164db7f10f516a9d0bca0a3527e864714.tar.gz
src-test2-d91d286164db7f10f516a9d0bca0a3527e864714.zip
MFMP: Make ppp multilink capable.
See the file README.changes, and re-read the man page.
Notes
Notes: svn path=/head/; revision=36285
Diffstat (limited to 'usr.sbin/ppp/async.h')
-rw-r--r--usr.sbin/ppp/async.h30
1 files changed, 25 insertions, 5 deletions
diff --git a/usr.sbin/ppp/async.h b/usr.sbin/ppp/async.h
index 13fa6b9b9060..492580713fb2 100644
--- a/usr.sbin/ppp/async.h
+++ b/usr.sbin/ppp/async.h
@@ -23,10 +23,30 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: async.h,v 1.2.4.7 1998/04/07 00:53:17 brian Exp $
*/
-extern void AsyncInit(void);
-extern void SetLinkParams(struct lcpstate *);
-extern void AsyncOutput(int, struct mbuf *, int);
-extern void AsyncInput(u_char *, int);
+#define HDLCSIZE (MAX_MRU*2+6)
+
+struct async {
+ int mode;
+ int length;
+ u_char hbuff[HDLCSIZE]; /* recv buffer */
+ u_char xbuff[HDLCSIZE]; /* xmit buffer */
+ u_long my_accmap;
+ u_long his_accmap;
+
+ struct {
+ u_char EscMap[33];
+ } cfg;
+};
+
+struct lcp;
+struct mbuf;
+struct physical;
+struct bundle;
+
+extern void async_Init(struct async *);
+extern void async_SetLinkParams(struct async *, struct lcp *);
+extern void async_Output(int, struct mbuf *, int, struct physical *);
+extern void async_Input(struct bundle *, u_char *, int, struct physical *);