Lines Matching refs:ndo

53 #define resp_print_empty(ndo)            ND_PRINT(" empty")
54 #define resp_print_null(ndo) ND_PRINT(" null")
55 #define resp_print_length_too_large(ndo) ND_PRINT(" length too large")
56 #define resp_print_length_negative(ndo) ND_PRINT(" length negative and not -1")
57 #define resp_print_invalid(ndo) ND_PRINT(" invalid")
210 resp_print(netdissect_options *ndo, const u_char *bp, u_int length)
214 ndo->ndo_protocol = "resp";
227 ret_len = resp_parse(ndo, bp, length);
236 nd_print_trunc(ndo);
240 resp_parse(netdissect_options *ndo, const u_char *bp, int length)
250 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break;
251 case RESP_INTEGER: ret_len = resp_print_integer(ndo, bp, length); break;
252 case RESP_ERROR: ret_len = resp_print_error(ndo, bp, length); break;
253 case RESP_BULK_STRING: ret_len = resp_print_bulk_string(ndo, bp, length); break;
254 case RESP_ARRAY: ret_len = resp_print_bulk_array(ndo, bp, length); break;
255 default: ret_len = resp_print_inline(ndo, bp, length); break;
270 resp_print_simple_string(netdissect_options *ndo, const u_char *bp, int length) {
271 return resp_print_string_error_integer(ndo, bp, length);
275 resp_print_integer(netdissect_options *ndo, const u_char *bp, int length) {
276 return resp_print_string_error_integer(ndo, bp, length);
280 resp_print_error(netdissect_options *ndo, const u_char *bp, int length) {
281 return resp_print_string_error_integer(ndo, bp, length);
285 resp_print_string_error_integer(netdissect_options *ndo, const u_char *bp, int length) {
310 RESP_PRINT_SEGMENT(ndo, bp, len);
320 resp_print_bulk_string(netdissect_options *ndo, const u_char *bp, int length) {
327 GET_LENGTH(ndo, length_cur, bp, string_len);
332 resp_print_empty(ndo);
336 RESP_PRINT_SEGMENT(ndo, bp, string_len);
351 case (-1): resp_print_null(ndo); break;
353 case (-3): resp_print_length_too_large(ndo); break;
354 case (-4): resp_print_length_negative(ndo); break;
355 default: resp_print_invalid(ndo); break;
366 resp_print_bulk_array(netdissect_options *ndo, const u_char *bp, int length) {
374 GET_LENGTH(ndo, length_cur, bp, array_len);
379 ret_len = resp_parse(ndo, bp, length_cur);
389 case 0: resp_print_empty(ndo); break;
390 case (-1): resp_print_null(ndo); break;
392 case (-3): resp_print_length_too_large(ndo); break;
393 case (-4): resp_print_length_negative(ndo); break;
394 default: resp_print_invalid(ndo); break;
405 resp_print_inline(netdissect_options *ndo, const u_char *bp, int length) {
435 RESP_PRINT_SEGMENT(ndo, bp, len);
452 resp_get_length(netdissect_options *ndo, const u_char *bp, int len, const u_char **endp)