Lines Matching refs:ndo

53 #define resp_print_empty(ndo)            ND_PRINT(" empty")  argument
54 #define resp_print_null(ndo) ND_PRINT(" null") argument
55 #define resp_print_length_too_large(ndo) ND_PRINT(" length too large") argument
56 #define resp_print_length_negative(ndo) ND_PRINT(" length negative and not -1") argument
57 #define resp_print_invalid(ndo) ND_PRINT(" invalid") argument
210 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) in resp_print() argument
214 ndo->ndo_protocol = "resp"; in resp_print()
229 ret_len = resp_parse(ndo, bp, length_cur); in resp_print()
238 nd_print_trunc(ndo); in resp_print()
242 resp_parse(netdissect_options *ndo, const u_char *bp, int length) in resp_parse() argument
252 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break; in resp_parse()
253 case RESP_INTEGER: ret_len = resp_print_integer(ndo, bp, length); break; in resp_parse()
254 case RESP_ERROR: ret_len = resp_print_error(ndo, bp, length); break; in resp_parse()
255 case RESP_BULK_STRING: ret_len = resp_print_bulk_string(ndo, bp, length); break; in resp_parse()
256 case RESP_ARRAY: ret_len = resp_print_bulk_array(ndo, bp, length); break; in resp_parse()
257 default: ret_len = resp_print_inline(ndo, bp, length); break; in resp_parse()
272 resp_print_simple_string(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_simple_string() argument
273 return resp_print_string_error_integer(ndo, bp, length); in resp_print_simple_string()
277 resp_print_integer(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_integer() argument
278 return resp_print_string_error_integer(ndo, bp, length); in resp_print_integer()
282 resp_print_error(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_error() argument
283 return resp_print_string_error_integer(ndo, bp, length); in resp_print_error()
287 resp_print_string_error_integer(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_string_error_integer() argument
312 RESP_PRINT_SEGMENT(ndo, bp, len); in resp_print_string_error_integer()
322 resp_print_bulk_string(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_bulk_string() argument
329 GET_LENGTH(ndo, length_cur, bp, string_len); in resp_print_bulk_string()
334 resp_print_empty(ndo); in resp_print_bulk_string()
338 RESP_PRINT_SEGMENT(ndo, bp, string_len); in resp_print_bulk_string()
353 case (-1): resp_print_null(ndo); break; in resp_print_bulk_string()
355 case (-3): resp_print_length_too_large(ndo); break; in resp_print_bulk_string()
356 case (-4): resp_print_length_negative(ndo); break; in resp_print_bulk_string()
357 default: resp_print_invalid(ndo); break; in resp_print_bulk_string()
368 resp_print_bulk_array(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_bulk_array() argument
376 GET_LENGTH(ndo, length_cur, bp, array_len); in resp_print_bulk_array()
381 ret_len = resp_parse(ndo, bp, length_cur); in resp_print_bulk_array()
391 case 0: resp_print_empty(ndo); break; in resp_print_bulk_array()
392 case (-1): resp_print_null(ndo); break; in resp_print_bulk_array()
394 case (-3): resp_print_length_too_large(ndo); break; in resp_print_bulk_array()
395 case (-4): resp_print_length_negative(ndo); break; in resp_print_bulk_array()
396 default: resp_print_invalid(ndo); break; in resp_print_bulk_array()
407 resp_print_inline(netdissect_options *ndo, const u_char *bp, int length) { in resp_print_inline() argument
437 RESP_PRINT_SEGMENT(ndo, bp, len); in resp_print_inline()
454 resp_get_length(netdissect_options *ndo, const u_char *bp, int len, const u_char **endp) in resp_get_length() argument