Lines Matching refs:bp
213 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) in resp_print() argument
217 if(!bp || length <= 0) in resp_print()
231 ret_len = resp_parse(ndo, bp, length_cur); in resp_print()
233 bp += ret_len; in resp_print()
244 resp_parse(netdissect_options *ndo, register const u_char *bp, int length) in resp_parse() argument
250 ND_TCHECK(*bp); in resp_parse()
251 op = *bp; in resp_parse()
255 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break; in resp_parse()
256 case RESP_INTEGER: ret_len = resp_print_integer(ndo, bp, length); break; in resp_parse()
257 case RESP_ERROR: ret_len = resp_print_error(ndo, bp, length); break; in resp_parse()
258 case RESP_BULK_STRING: ret_len = resp_print_bulk_string(ndo, bp, length); break; in resp_parse()
259 case RESP_ARRAY: ret_len = resp_print_bulk_array(ndo, bp, length); break; in resp_parse()
260 default: ret_len = resp_print_inline(ndo, bp, length); break; in resp_parse()
275 resp_print_simple_string(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_simple_string() argument
276 return resp_print_string_error_integer(ndo, bp, length); in resp_print_simple_string()
280 resp_print_integer(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_integer() argument
281 return resp_print_string_error_integer(ndo, bp, length); in resp_print_integer()
285 resp_print_error(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_error() argument
286 return resp_print_string_error_integer(ndo, bp, length); in resp_print_error()
290 resp_print_string_error_integer(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_string_error_integer() argument
295 SKIP_OPCODE(bp, length_cur); in resp_print_string_error_integer()
296 bp_ptr = bp; in resp_print_string_error_integer()
314 len = (bp_ptr - bp); in resp_print_string_error_integer()
315 RESP_PRINT_SEGMENT(ndo, bp, len); in resp_print_string_error_integer()
325 resp_print_bulk_string(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_bulk_string() argument
329 SKIP_OPCODE(bp, length_cur); in resp_print_bulk_string()
332 GET_LENGTH(ndo, length_cur, bp, string_len); in resp_print_bulk_string()
340 ND_TCHECK2(*bp, string_len); in resp_print_bulk_string()
341 RESP_PRINT_SEGMENT(ndo, bp, string_len); in resp_print_bulk_string()
342 bp += string_len; in resp_print_bulk_string()
351 FIND_CRLF(bp, length_cur); in resp_print_bulk_string()
352 CONSUME_CRLF(bp, length_cur); in resp_print_bulk_string()
371 resp_print_bulk_array(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_bulk_array() argument
376 SKIP_OPCODE(bp, length_cur); in resp_print_bulk_array()
379 GET_LENGTH(ndo, length_cur, bp, array_len); in resp_print_bulk_array()
384 ret_len = resp_parse(ndo, bp, length_cur); in resp_print_bulk_array()
388 bp += ret_len; in resp_print_bulk_array()
410 resp_print_inline(netdissect_options *ndo, register const u_char *bp, int length) { in resp_print_inline() argument
427 CONSUME_CR_OR_LF(bp, length_cur); in resp_print_inline()
428 bp_ptr = bp; in resp_print_inline()
439 len = (bp_ptr - bp); in resp_print_inline()
440 RESP_PRINT_SEGMENT(ndo, bp, len); in resp_print_inline()
457 resp_get_length(netdissect_options *ndo, register const u_char *bp, int len, const u_char **endp) in resp_get_length() argument
467 ND_TCHECK(*bp); in resp_get_length()
470 if (*bp == '-') { in resp_get_length()
472 bp++; in resp_get_length()
481 ND_TCHECK(*bp); in resp_get_length()
482 c = *bp; in resp_get_length()
485 bp++; in resp_get_length()
502 bp++; in resp_get_length()
511 if (*bp != '\r') { in resp_get_length()
512 bp++; in resp_get_length()
515 bp++; in resp_get_length()
519 ND_TCHECK(*bp); in resp_get_length()
520 if (*bp != '\n') { in resp_get_length()
521 bp++; in resp_get_length()
524 bp++; in resp_get_length()
526 *endp = bp; in resp_get_length()
536 *endp = bp; in resp_get_length()
540 *endp = bp; in resp_get_length()