Home
last modified time | relevance | path

Searched refs:srcCnt (Results 1 – 3 of 3) sorted by relevance

/freebsd-14.2/sys/net/
H A Dmppcc.c160 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()
286 if (*srcCnt < olen) in MPPC_Compress()
292 *src += *srcCnt; in MPPC_Compress()
[all …]
H A Dmppc.h57 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 Dmppcd.c104 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()