ReactOS  0.4.15-dev-1150-g593bcce
vj.h File Reference
#include "lwip/ip.h"
#include "lwip/tcp_impl.h"
Include dependency graph for vj.h:

Go to the source code of this file.

Classes

struct  cstate
 
struct  vjstat
 
struct  vjcompress
 

Macros

#define MAX_SLOTS   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   vjcs_u.csu_ip
 
#define cs_hdr   vjcs_u.csu_hdr
 
#define VJF_TOSS   1U /* tossing rcvd frames because of input err */
 

Functions

void vj_compress_init (struct vjcompress *comp)
 
u_int vj_compress_tcp (struct vjcompress *comp, struct pbuf *pb)
 
void vj_uncompress_err (struct vjcompress *comp)
 
int vj_uncompress_uncomp (struct pbuf *nb, struct vjcompress *comp)
 
int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp)
 

Macro Definition Documentation

◆ cs_hdr

#define cs_hdr   vjcs_u.csu_hdr

Definition at line 116 of file vj.h.

◆ cs_ip

#define cs_ip   vjcs_u.csu_ip

Definition at line 115 of file vj.h.

◆ MAX_HDR

#define MAX_HDR   128

Definition at line 32 of file vj.h.

◆ MAX_SLOTS

#define MAX_SLOTS   16 /* must be > 2 and < 256 */

Definition at line 31 of file vj.h.

◆ NEW_A

#define NEW_A   0x04

Definition at line 87 of file vj.h.

◆ NEW_C

#define NEW_C   0x40 /* flag bits for what changed in a packet */

Definition at line 84 of file vj.h.

◆ NEW_I

#define NEW_I   0x20

Definition at line 85 of file vj.h.

◆ NEW_S

#define NEW_S   0x08

Definition at line 86 of file vj.h.

◆ NEW_U

#define NEW_U   0x01

Definition at line 89 of file vj.h.

◆ NEW_W

#define NEW_W   0x02

Definition at line 88 of file vj.h.

◆ SPECIAL_D

#define SPECIAL_D   (NEW_S|NEW_A|NEW_W|NEW_U) /* unidirectional data */

Definition at line 93 of file vj.h.

◆ SPECIAL_I

#define SPECIAL_I   (NEW_S|NEW_W|NEW_U) /* echoed interactive traffic */

Definition at line 92 of file vj.h.

◆ SPECIALS_MASK

#define SPECIALS_MASK   (NEW_S|NEW_A|NEW_W|NEW_U)

Definition at line 94 of file vj.h.

◆ TCP_PUSH_BIT

#define TCP_PUSH_BIT   0x10

Definition at line 96 of file vj.h.

◆ TYPE_COMPRESSED_TCP

#define TYPE_COMPRESSED_TCP   0x80

Definition at line 80 of file vj.h.

◆ TYPE_ERROR

#define TYPE_ERROR   0x00

Definition at line 81 of file vj.h.

◆ TYPE_IP

#define TYPE_IP   0x40

Definition at line 78 of file vj.h.

◆ TYPE_UNCOMPRESSED_TCP

#define TYPE_UNCOMPRESSED_TCP   0x70

Definition at line 79 of file vj.h.

◆ VJF_TOSS

#define VJF_TOSS   1U /* tossing rcvd frames because of input err */

Definition at line 148 of file vj.h.

Function Documentation

◆ vj_compress_init()

void vj_compress_init ( struct vjcompress comp)

◆ vj_compress_tcp()

u_int vj_compress_tcp ( struct vjcompress comp,
struct pbuf pb 
)

◆ vj_uncompress_err()

void vj_uncompress_err ( struct vjcompress comp)

◆ vj_uncompress_tcp()

int vj_uncompress_tcp ( struct pbuf **  nb,
struct vjcompress comp 
)

◆ vj_uncompress_uncomp()

int vj_uncompress_uncomp ( struct pbuf nb,
struct vjcompress comp 
)