Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
slhc_vj.h File Reference
#include <linux/ip.h>
#include <linux/tcp.h>

Go to the source code of this file.

Data Structures

struct  cstate
 
struct  slcompress
 

Macros

#define SL_TYPE_IP   0x40
 
#define SL_TYPE_UNCOMPRESSED_TCP   0x70
 
#define SL_TYPE_COMPRESSED_TCP   0x80
 
#define SL_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 NULLSLSTATE   (struct cstate *)0
 
#define SLF_TOSS   0x01 /* tossing rcvd frames until id received */
 
#define NULLSLCOMPR   (struct slcompress *)0
 

Typedefs

typedef __u8 byte_t
 
typedef __u32 int32
 

Functions

struct slcompressslhc_init (int rslots, int tslots)
 
void slhc_free (struct slcompress *comp)
 
int slhc_compress (struct slcompress *comp, unsigned char *icp, int isize, unsigned char *ocp, unsigned char **cpp, int compress_cid)
 
int slhc_uncompress (struct slcompress *comp, unsigned char *icp, int isize)
 
int slhc_remember (struct slcompress *comp, unsigned char *icp, int isize)
 
int slhc_toss (struct slcompress *comp)
 

Macro Definition Documentation

#define NEW_A   0x04

Definition at line 97 of file slhc_vj.h.

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

Definition at line 94 of file slhc_vj.h.

#define NEW_I   0x20

Definition at line 95 of file slhc_vj.h.

#define NEW_S   0x08

Definition at line 96 of file slhc_vj.h.

#define NEW_U   0x01

Definition at line 99 of file slhc_vj.h.

#define NEW_W   0x02

Definition at line 98 of file slhc_vj.h.

#define NULLSLCOMPR   (struct slcompress *)0

Definition at line 171 of file slhc_vj.h.

#define NULLSLSTATE   (struct cstate *)0

Definition at line 137 of file slhc_vj.h.

#define SL_TYPE_COMPRESSED_TCP   0x80

Definition at line 90 of file slhc_vj.h.

#define SL_TYPE_ERROR   0x00

Definition at line 91 of file slhc_vj.h.

#define SL_TYPE_IP   0x40

Definition at line 88 of file slhc_vj.h.

#define SL_TYPE_UNCOMPRESSED_TCP   0x70

Definition at line 89 of file slhc_vj.h.

#define SLF_TOSS   0x01 /* tossing rcvd frames until id received */

Definition at line 154 of file slhc_vj.h.

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

Definition at line 103 of file slhc_vj.h.

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

Definition at line 102 of file slhc_vj.h.

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

Definition at line 104 of file slhc_vj.h.

#define TCP_PUSH_BIT   0x10

Definition at line 106 of file slhc_vj.h.

Typedef Documentation

typedef __u8 byte_t

Definition at line 119 of file slhc_vj.h.

typedef __u32 int32

Definition at line 120 of file slhc_vj.h.

Function Documentation

int slhc_compress ( struct slcompress comp,
unsigned char icp,
int  isize,
unsigned char ocp,
unsigned char **  cpp,
int  compress_cid 
)

Definition at line 705 of file slhc.c.

void slhc_free ( struct slcompress comp)

Definition at line 720 of file slhc.c.

struct slcompress* slhc_init ( int  rslots,
int  tslots 
)
read

Definition at line 725 of file slhc.c.

int slhc_remember ( struct slcompress comp,
unsigned char icp,
int  isize 
)

Definition at line 713 of file slhc.c.

int slhc_toss ( struct slcompress comp)

Definition at line 693 of file slhc.c.

int slhc_uncompress ( struct slcompress comp,
unsigned char icp,
int  isize 
)

Definition at line 699 of file slhc.c.