Home
last modified time | relevance | path

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

/freebsd/sys/net/
H A Dmppcc.c44 #define MPPE_HIST_LEN 8192 macro
49 uint8_t hist[2*MPPE_HIST_LEN];
51 uint16_t hash[MPPE_HIST_LEN];
141 state->histptr = MPPE_HIST_LEN; in MPPC_InitCompressionHistory()
166 if (*srcCnt > MPPE_HIST_LEN) { in MPPC_Compress()
171 hist = state->hist + MPPE_HIST_LEN; in MPPC_Compress()
173 if (state->histptr + *srcCnt >= 2*MPPE_HIST_LEN) { in MPPC_Compress()
175 state->histptr = MPPE_HIST_LEN; in MPPC_Compress()
176 memcpy(state->hist, hist, MPPE_HIST_LEN); in MPPC_Compress()
195 p -= MPPE_HIST_LEN; /* Try previous history buffer. */ in MPPC_Compress()
[all …]
H A Dmppcd.c44 #define MPPE_HIST_LEN 8192 macro
47 uint8_t hist[2*MPPE_HIST_LEN];
101 state->histptr = MPPE_HIST_LEN; in MPPC_InitDecompressionHistory()
113 memcpy(state->hist, state->hist + MPPE_HIST_LEN, MPPE_HIST_LEN); in MPPC_Decompress()
114 state->histptr = MPPE_HIST_LEN; in MPPC_Decompress()
124 if (state->histptr < 2*MPPE_HIST_LEN) { in MPPC_Decompress()
139 if (state->histptr < 2*MPPE_HIST_LEN) { in MPPC_Decompress()
167 if (off > MPPE_HIST_LEN - 1) { in MPPC_Decompress()
243 if (state->histptr < 2*MPPE_HIST_LEN) { in MPPC_Decompress()