uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vj.h File Reference
#include "lwip/ip.h"
#include "lwip/tcp_impl.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

#define cs_hdr   vjcs_u.csu_hdr

Definition at line 116 of file vj.h.

#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.

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

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.

#define TYPE_UNCOMPRESSED_TCP   0x70

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

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_tcp ( struct pbuf **  nb,
struct vjcompress comp 
)
int vj_uncompress_uncomp ( struct pbuf nb,
struct vjcompress comp 
)