ReactOS 0.4.15-dev-7711-g5627da4
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.


struct  cstate
struct  vjstat
struct  vjcompress


#define MAX_SLOTS   16 /* must be > 2 and < 256 */
#define MAX_HDR   128
#define TYPE_IP   0x40
#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 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 */


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.


#define MAX_HDR   128

Definition at line 32 of file vj.h.


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

Definition at line 31 of file vj.h.


#define NEW_A   0x04

Definition at line 87 of file vj.h.


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

Definition at line 84 of file vj.h.


#define NEW_I   0x20

Definition at line 85 of file vj.h.


#define NEW_S   0x08

Definition at line 86 of file vj.h.


#define NEW_U   0x01

Definition at line 89 of file vj.h.


#define NEW_W   0x02

Definition at line 88 of file vj.h.


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

Definition at line 93 of file vj.h.


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

Definition at line 92 of file vj.h.



Definition at line 94 of file vj.h.


#define TCP_PUSH_BIT   0x10

Definition at line 96 of file vj.h.


#define TYPE_COMPRESSED_TCP   0x80

Definition at line 80 of file vj.h.


#define TYPE_ERROR   0x00

Definition at line 81 of file vj.h.


#define TYPE_IP   0x40

Definition at line 78 of file vj.h.



Definition at line 79 of file vj.h.


#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