Searched refs:srcCnt (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/net/ |
H A D | mppcc.c | 144 int MPPC_Compress(u_char **src, u_char **dst, u_long *srcCnt, u_long *dstCnt, char *history, int fl… in MPPC_Compress() argument 160 if (*dstCnt < (*srcCnt * 9 / 8 + 2)) { in MPPC_Compress() 166 if (*srcCnt > MPPE_HIST_LEN) { in MPPC_Compress() 173 if (state->histptr + *srcCnt >= 2*MPPE_HIST_LEN) { in MPPC_Compress() 180 memcpy(sbuf, *src, *srcCnt); in MPPC_Compress() 181 state->histptr += *srcCnt; in MPPC_Compress() 184 r = sbuf + *srcCnt; in MPPC_Compress() 187 while (i < *srcCnt - 2) { in MPPC_Compress() 270 while(*srcCnt - i > 0) { in MPPC_Compress() 285 if ((*srcCnt < olen) || ((flags & MPPC_SAVE_HISTORY) == 0)) { in MPPC_Compress() [all …]
|
H A D | mppc.h | 57 extern int MPPC_Compress(u_char **src, u_char **dst, u_long *srcCnt, u_long *dstCnt, char *history,… 58 extern int MPPC_Decompress(u_char **src, u_char **dst, u_long *srcCnt, u_long *dstCnt, char *histor…
|
H A D | mppcd.c | 104 int MPPC_Decompress(u_char **src, u_char **dst, u_long *srcCnt, u_long *dstCnt, char *history, int … in MPPC_Decompress() argument 120 bits = *srcCnt * 8; in MPPC_Decompress() 276 *src += *srcCnt; in MPPC_Decompress() 277 *srcCnt = 0; in MPPC_Decompress()
|