Home
last modified time | relevance | path

Searched refs:MPPE_HIST_LEN (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/net/
H A Dmppcc.c46 #define MPPE_HIST_LEN 8192 macro
51 uint8_t hist[2*MPPE_HIST_LEN];
53 uint16_t hash[MPPE_HIST_LEN];
143 state->histptr = MPPE_HIST_LEN; in MPPC_InitCompressionHistory()
168 if (*srcCnt > MPPE_HIST_LEN) { in MPPC_Compress()
173 hist = state->hist + MPPE_HIST_LEN; in MPPC_Compress()
175 if (state->histptr + *srcCnt >= 2*MPPE_HIST_LEN) { in MPPC_Compress()
177 state->histptr = MPPE_HIST_LEN; in MPPC_Compress()
178 memcpy(state->hist, hist, MPPE_HIST_LEN); in MPPC_Compress()
201 if (off > MPPE_HIST_LEN - 1 || off < 1 || *p++ != *s++ || in MPPC_Compress()
[all …]
H A Dmppcd.c46 #define MPPE_HIST_LEN 8192 macro
49 uint8_t hist[2*MPPE_HIST_LEN];
103 state->histptr = MPPE_HIST_LEN; in MPPC_InitDecompressionHistory()
115 memcpy(state->hist, state->hist + MPPE_HIST_LEN, MPPE_HIST_LEN); in MPPC_Decompress()
116 state->histptr = MPPE_HIST_LEN; in MPPC_Decompress()
126 if (state->histptr < 2*MPPE_HIST_LEN) { in MPPC_Decompress()
141 if (state->histptr < 2*MPPE_HIST_LEN) { in MPPC_Decompress()
169 if (off > MPPE_HIST_LEN - 1) { in MPPC_Decompress()
245 if (state->histptr < 2*MPPE_HIST_LEN) { in MPPC_Decompress()