Lines Matching refs:ndo

75 fn_print_char(netdissect_options *ndo, u_char c)
79 ND_PRINT((ndo, "M-"));
83 ND_PRINT((ndo, "^"));
85 ND_PRINT((ndo, "%c", c));
95 fn_print(netdissect_options *ndo,
110 ND_PRINT((ndo, "M-"));
114 ND_PRINT((ndo, "^"));
116 ND_PRINT((ndo, "%c", c));
130 * of the packet, e.g. ndo->ndo_snapend. If ep is NULL, we assume no
140 fn_printztn(netdissect_options *ndo,
172 ND_PRINT((ndo, "M-"));
176 ND_PRINT((ndo, "^"));
178 ND_PRINT((ndo, "%c", c));
190 fn_printn(netdissect_options *ndo,
200 ND_PRINT((ndo, "M-"));
204 ND_PRINT((ndo, "^"));
206 ND_PRINT((ndo, "%c", c));
219 fn_printzp(netdissect_options *ndo,
236 ND_PRINT((ndo, "M-"));
240 ND_PRINT((ndo, "^"));
242 ND_PRINT((ndo, "%c", c));
251 ts_format(netdissect_options *ndo
260 switch (ndo->ndo_tstamp_precision) {
288 ts_unix_format(netdissect_options *ndo
297 switch (ndo->ndo_tstamp_precision) {
325 ts_print(netdissect_options *ndo,
337 switch (ndo->ndo_tflag) {
341 ND_PRINT((ndo, "%s ", ts_format(ndo, s, tvp->tv_usec, buf)));
348 ND_PRINT((ndo, "%s ", ts_unix_format(ndo,
355 switch (ndo->ndo_tstamp_precision) {
378 ND_PRINT((ndo, (negative_offset ? "-" : " ")));
380 ND_PRINT((ndo, "%s ", ts_format(ndo,
383 if (ndo->ndo_tflag == 3)
392 ND_PRINT((ndo, "Date fail "));
394 ND_PRINT((ndo, "%04d-%02d-%02d %s ",
396 ts_format(ndo, s, tvp->tv_usec, buf)));
407 unsigned_relts_print(netdissect_options *ndo,
416 ND_PRINT((ndo, "0s"));
421 ND_PRINT((ndo, "%d%s", secs / *s, *l));
435 signed_relts_print(netdissect_options *ndo,
439 ND_PRINT((ndo, "-"));
452 unsigned_relts_print(ndo, 2147483648U);
458 unsigned_relts_print(ndo, -secs);
462 unsigned_relts_print(ndo, secs);
472 print_unknown_data(netdissect_options *ndo, const u_char *cp,const char *ident,int len)
475 ND_PRINT((ndo,"%sDissector error: print_unknown_data called with negative length",
479 if (ndo->ndo_snapend - cp < len)
480 len = ndo->ndo_snapend - cp;
482 ND_PRINT((ndo,"%sDissector error: print_unknown_data called with pointer past end of packet",
486 hex_print(ndo, ident,cp,len);
697 fetch_token(netdissect_options *ndo, const u_char *pptr, u_int idx, u_int len,
764 print_txt_line(netdissect_options *ndo, const char *protoname,
824 ND_PRINT((ndo, "%s%.*s[!%s]", prefix, (int)linelen, pptr + startidx,
829 ND_PRINT((ndo, "%s%.*s", prefix, (int)linelen, pptr + startidx));
834 txtproto_print(netdissect_options *ndo, const u_char *pptr, u_int len,
849 idx = fetch_token(ndo, pptr, 0, len, token, sizeof(token));
870 idx = fetch_token(ndo, pptr, idx, len, token,
893 ND_PRINT((ndo, "%c", toupper((u_char)*pnp)));
904 if (ndo->ndo_vflag) {
910 ND_PRINT((ndo, ", length: %u", len));
912 idx < len && (eol = print_txt_line(ndo, protoname, "\n\t", pptr, idx, len)) != 0;
919 print_txt_line(ndo, protoname, ": ", pptr, 0, len);
925 safeputs(netdissect_options *ndo,
931 safeputchar(ndo, *s);
938 safeputchar(netdissect_options *ndo,
941 ND_PRINT((ndo, (c < 0x80 && ND_ISPRINT(c)) ? "%c" : "\\0x%02x", c));