Lines Matching refs:length
110 telnet_parse(const u_char *sp, u_int length, int print)
115 #define FETCH(c, sp, length) \
117 if (length < 1) \
121 length--; \
126 FETCH(c, sp, length);
129 FETCH(c, sp, length);
147 FETCH(x, sp, length);
159 while (length > (u_int)(p + 1 - sp)) {
171 FETCH(c, sp, length);
176 FETCH(c, sp, length);
183 FETCH(c, sp, length);
188 FETCH(c, sp, length);
195 FETCH(c, sp, length);
201 FETCH(x, sp, length);
209 length -= 2;
228 telnet_print(const u_char *sp, u_int length)
236 while (length > 0 && *sp == IAC) {
237 l = telnet_parse(sp, length, 0);
255 (void)telnet_parse(sp, length, 1);
259 length -= l;