Lines Matching +full:0 +full:xfffffe00
58 enum date_flag { WITHOUT_DATE = 0, WITH_DATE = 1 };
59 enum time_flag { UTC_TIME = 0, LOCAL_TIME = 1 };
72 c ^= 0x40; /* DEL to ?, others to alpha */ in fn_print_char()
86 while (*s != '\0') { in fn_print_str()
108 * this will always be non-zero. Return 0 if truncated.
117 bytes = 0; in nd_printztn()
119 if (n == 0 || (ep != NULL && s >= ep)) { in nd_printztn()
130 bytes = 0; in nd_printztn()
138 if (c == '\0') { in nd_printztn()
160 while (n > 0 && (ep == NULL || s < ep)) { in nd_printn()
166 return (n == 0) ? 0 : 1; in nd_printn()
179 while (n > 0) { in nd_printjn()
198 while (n > 0) { in nd_printjnp()
200 if (c == '\0') in nd_printjnp()
247 if (tv->tv_sec < 0) { in ts_date_hmsfrac_print()
275 if (tv->tv_sec < 0) { in ts_unix_print()
298 case 0: /* Default */ in ts_print()
316 nano_prec = 0; in ts_print()
322 nano_prec = 0; in ts_print()
326 nano_prec = 0; in ts_print()
366 if (secs == 0) { in unsigned_relts_print()
367 ND_PRINT("0s"); in unsigned_relts_print()
370 while (secs > 0) { in unsigned_relts_print()
389 if (secs < 0) { in signed_relts_print()
428 if (strftime(buf, bufsize, format, timeptr) != 0) in nd_format_time()
452 for (p = ndo->ndo_protocol; *p != '\0'; p++) in nd_print_protocol_caps()
465 * get a proper output - returns 0 on error
475 if (!ND_TTEST_LEN(cp, 0)) { in print_unknown_data()
478 return(0); in print_unknown_data()
517 static int idx = 0; in tok2str()
522 return tok2strbuf(lp, fmt, v, ret, sizeof(buf[0])); in tok2str()
531 * in the token is set in v. Consequently, a 0 token never matches.
604 if (v >= 0 && v < n && lp[v] != NULL) in tok2strary_internal()
620 for (i = 0; i < size; i++) in uint2tokary_internal()
636 0x00000000, in mask2plen()
637 0x80000000, 0xc0000000, 0xe0000000, 0xf0000000, in mask2plen()
638 0xf8000000, 0xfc000000, 0xfe000000, 0xff000000, in mask2plen()
639 0xff800000, 0xffc00000, 0xffe00000, 0xfff00000, in mask2plen()
640 0xfff80000, 0xfffc0000, 0xfffe0000, 0xffff0000, in mask2plen()
641 0xffff8000, 0xffffc000, 0xffffe000, 0xfffff000, in mask2plen()
642 0xfffff800, 0xfffffc00, 0xfffffe00, 0xffffff00, in mask2plen()
643 0xffffff80, 0xffffffc0, 0xffffffe0, 0xfffffff0, in mask2plen()
644 0xfffffff8, 0xfffffffc, 0xfffffffe, 0xffffffff in mask2plen()
649 while (prefix_len >= 0) { in mask2plen()
661 0x00, in mask62plen()
662 0x80, 0xc0, 0xe0, 0xf0, in mask62plen()
663 0xf8, 0xfc, 0xfe, 0xff in mask62plen()
666 int cidr_len = 0; in mask62plen()
668 for (byte = 0; byte < 16; byte++) { in mask62plen()
671 for (bits = 0; bits < (sizeof (bitmasks) / sizeof (bitmasks[0])); bits++) { in mask62plen()
678 if (mask[byte] != 0xff) in mask62plen()
694 * Returns 0 on error; yes, this is indistinguishable from an empty
703 size_t toklen = 0; in fetch_token()
709 return (0); in fetch_token()
714 return (0); in fetch_token()
722 return (0); in fetch_token()
725 /* no room for this character and terminating '\0' */ in fetch_token()
726 return (0); in fetch_token()
731 if (toklen == 0) { in fetch_token()
733 return (0); in fetch_token()
735 tbuf[toklen] = '\0'; in fetch_token()
765 * Return the index of the character after the line ending or 0 if
793 return (0); in print_txt_line()
811 return (0); in print_txt_line()
818 return (0); in print_txt_line()
829 return (0); in print_txt_line()
844 int print_this = 0; in txtproto_print()
859 idx = fetch_token(ndo, pptr, 0, len, token, sizeof(token)); in txtproto_print()
860 if (idx != 0) { in txtproto_print()
863 if (ascii_strcasecmp((const char *)token, cmd) == 0) { in txtproto_print()
883 if (idx != 0) { in txtproto_print()
884 if (ND_ASCII_ISDIGIT(token[0]) && ND_ASCII_ISDIGIT(token[1]) && in txtproto_print()
885 ND_ASCII_ISDIGIT(token[2]) && token[3] == '\0') { in txtproto_print()
927 for (idx = 0; in txtproto_print()
928 idx < len && (eol = print_txt_line(ndo, "\n\t", pptr, idx, len)) != 0; in txtproto_print()
935 print_txt_line(ndo, ": ", pptr, 0, len); in txtproto_print()