Lines Matching defs:ndo

51 #define resp_print_empty(ndo)            ND_PRINT(" empty")
52 #define resp_print_null(ndo) ND_PRINT(" null")
53 #define resp_print_length_too_large(ndo) ND_PRINT(" length too large")
54 #define resp_print_length_negative(ndo) ND_PRINT(" length negative and not -1")
55 #define resp_print_invalid(ndo) ND_PRINT(" invalid")
208 resp_print(netdissect_options *ndo, const u_char *bp, u_int length)
212 ndo->ndo_protocol = "resp";
225 ret_len = resp_parse(ndo, bp, length);
234 nd_print_trunc(ndo);
238 resp_parse(netdissect_options *ndo, const u_char *bp, int length)
248 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break;
249 case RESP_INTEGER: ret_len = resp_print_integer(ndo, bp, length); break;
250 case RESP_ERROR: ret_len = resp_print_error(ndo, bp, length); break;
251 case RESP_BULK_STRING: ret_len = resp_print_bulk_string(ndo, bp, length); break;
252 case RESP_ARRAY: ret_len = resp_print_bulk_array(ndo, bp, length); break;
253 default: ret_len = resp_print_inline(ndo, bp, length); break;
268 resp_print_simple_string(netdissect_options *ndo, const u_char *bp, int length) {
269 return resp_print_string_error_integer(ndo, bp, length);
273 resp_print_integer(netdissect_options *ndo, const u_char *bp, int length) {
274 return resp_print_string_error_integer(ndo, bp, length);
278 resp_print_error(netdissect_options *ndo, const u_char *bp, int length) {
279 return resp_print_string_error_integer(ndo, bp, length);
283 resp_print_string_error_integer(netdissect_options *ndo, const u_char *bp, int length) {
308 RESP_PRINT_SEGMENT(ndo, bp, len);
318 resp_print_bulk_string(netdissect_options *ndo, const u_char *bp, int length) {
325 GET_LENGTH(ndo, length_cur, bp, string_len);
330 resp_print_empty(ndo);
334 RESP_PRINT_SEGMENT(ndo, bp, string_len);
349 case (-1): resp_print_null(ndo); break;
351 case (-3): resp_print_length_too_large(ndo); break;
352 case (-4): resp_print_length_negative(ndo); break;
353 default: resp_print_invalid(ndo); break;
364 resp_print_bulk_array(netdissect_options *ndo, const u_char *bp, int length) {
372 GET_LENGTH(ndo, length_cur, bp, array_len);
377 ret_len = resp_parse(ndo, bp, length_cur);
387 case 0: resp_print_empty(ndo); break;
388 case (-1): resp_print_null(ndo); break;
390 case (-3): resp_print_length_too_large(ndo); break;
391 case (-4): resp_print_length_negative(ndo); break;
392 default: resp_print_invalid(ndo); break;
403 resp_print_inline(netdissect_options *ndo, const u_char *bp, int length) {
433 RESP_PRINT_SEGMENT(ndo, bp, len);
450 resp_get_length(netdissect_options *ndo, const u_char *bp, int len, const u_char **endp)