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