RTEMS CPU Kit with SuperCore
Data Structures | Macros | Functions
slcompress.h File Reference
#include <netinet/ip.h>
Include dependency graph for slcompress.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cstate
 
struct  slcompress
 

Macros

#define MAX_STATES   16 /* must be > 2 and < 256 */
 
#define MAX_HDR   128
 
#define TYPE_IP   0x40
 
#define TYPE_UNCOMPRESSED_TCP   0x70
 
#define TYPE_COMPRESSED_TCP   0x80
 
#define TYPE_ERROR   0x00
 
#define NEW_C   0x40 /* flag bits for what changed in a packet */
 
#define NEW_I   0x20
 
#define NEW_S   0x08
 
#define NEW_A   0x04
 
#define NEW_W   0x02
 
#define NEW_U   0x01
 
#define SPECIAL_I   (NEW_S|NEW_W|NEW_U) /* echoed interactive traffic */
 
#define SPECIAL_D   (NEW_S|NEW_A|NEW_W|NEW_U) /* unidirectional data */
 
#define SPECIALS_MASK   (NEW_S|NEW_A|NEW_W|NEW_U)
 
#define TCP_PUSH_BIT   0x10
 
#define cs_ip   slcs_u.csu_ip
 
#define cs_hdr   slcs_u.csu_hdr
 
#define SLF_TOSS   1 /* tossing rcvd frames because of input err */
 

Functions

void sl_compress_init (struct slcompress *, int)
 
u_int sl_compress_tcp (struct mbuf *, struct ip *, struct slcompress *, int)
 
int sl_uncompress_tcp (u_char **, int, u_int, struct slcompress *)
 
int sl_uncompress_tcp_core (u_char *, int, int, u_int, struct slcompress *, u_char **, u_int *)