aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/async.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-02-02 19:33:40 +0000
committerBrian Somers <brian@FreeBSD.org>1998-02-02 19:33:40 +0000
commit6140ba1177f35afccbaf1c04700fea5809d22ee7 (patch)
treea27ff84247762f2279a6d564837f3165b1f0b398 /usr.sbin/ppp/async.h
parent820de6eb8e0c254d05c6a152854e99f4f686aa51 (diff)
downloadsrc-6140ba1177f35afccbaf1c04700fea5809d22ee7.tar.gz
src-6140ba1177f35afccbaf1c04700fea5809d22ee7.zip
Create `struct async' and make it part of `struct physical'.
This structure contains the asynchronous state of the physical link. Unfortunately, just about every .h file is included in every .c file now. Fixing this can be one of the last jobs.
Notes
Notes: svn path=/cvs2svn/branches/MP/; revision=33032
Diffstat (limited to 'usr.sbin/ppp/async.h')
-rw-r--r--usr.sbin/ppp/async.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/usr.sbin/ppp/async.h b/usr.sbin/ppp/async.h
index e5dd769e4e40..5581bb931ea3 100644
--- a/usr.sbin/ppp/async.h
+++ b/usr.sbin/ppp/async.h
@@ -23,10 +23,21 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: async.h,v 1.2.4.2 1998/01/30 19:45:25 brian Exp $
+ * $Id: async.h,v 1.2.4.3 1998/02/02 19:32:00 brian Exp $
*/
-extern void AsyncInit(void);
-extern void SetLinkParams(struct lcpstate *);
-extern void AsyncOutput(int, struct mbuf *, int, struct link *);
-extern void AsyncInput(struct bundle *, u_char *, int, struct physical *);
+#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;
+};
+
+extern void async_Init(struct async *);
+extern void async_SetLinkParams(struct async *, struct lcpstate *);
+extern void async_Output(int, struct mbuf *, int, struct physical *);
+extern void async_Input(struct bundle *, u_char *, int, struct physical *);