Lines Matching refs:pptr
510 fetch_token(netdissect_options *ndo, const u_char *pptr, u_int idx, u_int len, in fetch_token() argument
516 if (!ND_TTEST(*(pptr + idx))) { in fetch_token()
520 if (!isascii(*(pptr + idx))) { in fetch_token()
524 if (isspace(*(pptr + idx))) { in fetch_token()
528 if (!isprint(*(pptr + idx))) { in fetch_token()
536 tbuf[toklen] = *(pptr + idx); in fetch_token()
550 if (!ND_TTEST(*(pptr + idx))) { in fetch_token()
554 if (*(pptr + idx) == '\r' || *(pptr + idx) == '\n') { in fetch_token()
558 if (!isascii(*(pptr + idx)) || !isprint(*(pptr + idx))) { in fetch_token()
562 if (!isspace(*(pptr + idx))) { in fetch_token()
578 const char *prefix, const u_char *pptr, u_int idx, u_int len) in print_txt_line() argument
585 ND_TCHECK(*(pptr+idx)); in print_txt_line()
586 if (*(pptr+idx) == '\n') { in print_txt_line()
595 } else if (*(pptr+idx) == '\r') { in print_txt_line()
601 ND_TCHECK(*(pptr+idx+1)); in print_txt_line()
602 if (*(pptr+idx+1) == '\n') { in print_txt_line()
619 } else if (!isascii(*(pptr+idx)) || in print_txt_line()
620 (!isprint(*(pptr+idx)) && *(pptr+idx) != '\t')) { in print_txt_line()
637 ND_PRINT((ndo, "%s%.*s[!%s]", prefix, (int)linelen, pptr + startidx, in print_txt_line()
642 ND_PRINT((ndo, "%s%.*s", prefix, (int)linelen, pptr + startidx)); in print_txt_line()
647 txtproto_print(netdissect_options *ndo, const u_char *pptr, u_int len, in txtproto_print() argument
662 idx = fetch_token(ndo, pptr, 0, len, token, sizeof(token)); in txtproto_print()
683 idx = fetch_token(ndo, pptr, idx, len, token, in txtproto_print()
725 idx < len && (eol = print_txt_line(ndo, protoname, "\n\t", pptr, idx, len)) != 0; in txtproto_print()
732 print_txt_line(ndo, protoname, ": ", pptr, 0, len); in txtproto_print()