• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/tcpdump/

Lines Matching defs:fmt

325            unsigned int val, const char *fmt)
327 const char *p = fmt;
330 while ((p = strchr(fmt, '|'))) {
331 size_t l = PTR_DIFF(p, fmt);
333 ND_PRINT((ndo, "%.*s ", (int)l, fmt));
334 fmt = p + 1;
436 const u_char *buf, const char *fmt, const u_char *maxbuf,
442 while (*fmt && buf<maxbuf) {
443 switch (*fmt) {
448 fmt++;
455 fmt++;
464 p = strchr(++fmt, '}');
465 l = PTR_DIFF(p, fmt);
470 strncpy(bitfmt, fmt, l);
472 fmt = p + 1;
481 int l = atoi(fmt + 1);
482 if(l <= 0) goto trunc; /* actually error in fmt string */
485 fmt++;
486 while (isdigit((unsigned char)*fmt))
487 fmt++;
492 fmt++;
501 fmt++;
512 fmt++;
523 fmt++;
534 fmt++;
550 fmt++;
560 fmt++;
571 fmt++;
582 fmt++;
587 fmt++;
588 switch (*fmt) {
613 fmt++;
624 s = unistr(ndo, buf, &len, (*fmt == 'R') ? 0 : unicodestr);
629 fmt++;
644 s = unistr(ndo, buf + 1, &len, (*fmt == 'Y') ? 0 : unicodestr);
649 fmt++;
654 int l = atoi(fmt + 1);
658 fmt++;
659 while (isdigit((unsigned char)*fmt))
660 fmt++;
668 fmt++;
669 while (isdigit((unsigned char)*fmt))
670 fmt++;
681 fmt++;
686 int l = atoi(fmt + 1);
690 fmt++;
691 while (isdigit((unsigned char)*fmt))
692 fmt++;
697 int t = atoi(fmt+1);
723 fmt++;
724 while (isdigit((unsigned char)*fmt))
725 fmt++;
735 switch (atoi(fmt + 1)) {
772 fmt++;
773 while (isdigit((unsigned char)*fmt))
774 fmt++;
778 ND_PRINT((ndo, "%c", *fmt));
779 fmt++;
784 if (buf >= maxbuf && *fmt)
797 const u_char *buf, const char *fmt, const u_char *maxbuf,
805 while (*fmt) {
806 switch (*fmt) {
813 fmt++;
827 buf2 = smb_fdata(ndo, buf, fmt, maxbuf, unicodestr);
841 fmt++;
850 fmt++;
858 fmt++;
867 fmt++;
871 p = strchr(fmt, ']');
872 if ((size_t)(p - fmt + 1) > sizeof(s)) {
876 strncpy(s, fmt, p - fmt);
877 s[p - fmt] = '\0';
878 fmt = p + 1;
889 ND_PRINT((ndo, "%c", *fmt));
890 fmt++;