make changes to RTM_GET so that you can indicate that you want
[unix-history] / usr / src / sys / net / slcompress.h
index 6624ec2..cebbae6 100644 (file)
@@ -1,10 +1,16 @@
+/*     slcompress.h    7.4     90/06/28        */
 /*
  * Definitions for tcp compression routines.
  *
 /*
  * Definitions for tcp compression routines.
  *
- * Copyright (c) 1988, 1989 by Van Jacobson, Lawrence Berkeley Laboratory
+ * $Header: slcompress.h,v 1.10 89/12/31 08:53:02 van Exp $
+ *
+ * Copyright (c) 1989 Regents of the University of California.
  * All rights reserved.
  *
  * All rights reserved.
  *
- * $Header: slcompress.h,v 1.6 89/06/05 08:29:13 van Exp $
+ * %sccs.include.redist.c%
+ *
+ *     Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
+ *     - Initial distribution.
  */
 
 #define MAX_STATES 16          /* must be > 2 and < 256 */
  */
 
 #define MAX_STATES 16          /* must be > 2 and < 256 */
@@ -87,11 +93,12 @@ struct cstate {
        u_char cs_id;           /* connection # associated with this state */
        u_char cs_filler;
        union {
        u_char cs_id;           /* connection # associated with this state */
        u_char cs_filler;
        union {
-               char hdr[MAX_HDR];
+               char csu_hdr[MAX_HDR];
                struct ip csu_ip;       /* ip/tcp hdr from most recent packet */
                struct ip csu_ip;       /* ip/tcp hdr from most recent packet */
-       } u;
+       } slcs_u;
 };
 };
-#define cs_ip u.csu_ip
+#define cs_ip slcs_u.csu_ip
+#define cs_hdr slcs_u.csu_hdr
 
 /*
  * all the state data for one serial line (we need one of these
 
 /*
  * all the state data for one serial line (we need one of these
@@ -102,7 +109,7 @@ struct slcompress {
        u_char last_recv;       /* last rcvd conn. id */
        u_char last_xmit;       /* last sent conn. id */
        u_short flags;
        u_char last_recv;       /* last rcvd conn. id */
        u_char last_xmit;       /* last sent conn. id */
        u_short flags;
-#ifndef NO_SL_STATS
+#ifndef SL_NO_STATS
        int sls_packets;        /* outbound packets */
        int sls_compressed;     /* outbound compressed packets */
        int sls_searches;       /* searches for connection state */
        int sls_packets;        /* outbound packets */
        int sls_compressed;     /* outbound compressed packets */
        int sls_searches;       /* searches for connection state */
@@ -119,5 +126,6 @@ struct slcompress {
 #define SLF_TOSS 1             /* tossing rcvd frames because of input err */
 
 extern void sl_compress_init(/* struct slcompress * */);
 #define SLF_TOSS 1             /* tossing rcvd frames because of input err */
 
 extern void sl_compress_init(/* struct slcompress * */);
-extern u_char sl_compress_tcp(/* struct mbuf *, struct ip *, struct slcompress * */);
+extern u_char sl_compress_tcp(/* struct mbuf *, struct ip *,
+                               struct slcompress *, int compress_cid_flag */);
 extern int sl_uncompress_tcp(/* u_char **, int,  u_char, struct slcompress * */);
 extern int sl_uncompress_tcp(/* u_char **, int,  u_char, struct slcompress * */);