Go to the documentation of this file. 1 #ifndef __UM_SLIP_COMMON_H
2 #define __UM_SLIP_COMMON_H
7 #define ENC_BUF_SIZE (2 * BUF_SIZE + 2)
12 #define SLIP_ESC_END 0334
13 #define SLIP_ESC_ESC 0335
15 static inline int slip_unesc(
unsigned char c,
unsigned char *
buf,
int *
pos,
46 static inline int slip_esc(
unsigned char *
s,
unsigned char *
d,
int len)
48 unsigned char *
ptr =
d;