/freebsd/contrib/bc/tests/bc/ |
H A D | length.txt | 1 length(0) 2 length(0.0000) 3 length(0.00000000) 4 length(0.00000000000) 5 length(1) 6 length(12) 7 length(123) 8 length(1234) 9 length(12345) 10 length(123456) [all …]
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | der_cmp.c | 39 if (p->length != q->length) in der_heim_oid_cmp() 40 return p->length - q->length; in der_heim_oid_cmp() 43 p->length * sizeof(*p->components)); in der_heim_oid_cmp() 50 if (p->length != q->length) in der_heim_octet_string_cmp() 51 return p->length - q->length; in der_heim_octet_string_cmp() 52 return memcmp(p->data, q->data, p->length); in der_heim_octet_string_cmp() 74 if (p->length != q->length) in der_heim_bit_string_cmp() 75 return p->length - q->length; in der_heim_bit_string_cmp() 76 i = memcmp(p->data, q->data, p->length / 8); in der_heim_bit_string_cmp() 79 if ((p->length % 8) == 0) in der_heim_bit_string_cmp() [all …]
|
H A D | der_copy.c | 102 to->length = from->length; in der_copy_ia5_string() 103 to->data = malloc(to->length + 1); 106 memcpy(to->data, from->data, to->length); in der_copy_bmp_string() 107 ((char *)to->data)[to->length] = '\0'; in der_copy_bmp_string() 121 to->length = from->length; in der_copy_universal_string() 122 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_universal_string() 123 if(to->length != 0 && to->data == NULL) in der_copy_universal_string() 125 memcpy(to->data, from->data, to->length * sizeo in der_copy_universal_string() [all...] |
/freebsd/contrib/tcpdump/ |
H A D | print-ipx.c | 49 nd_uint16_t length; /* Length, in bytes, including header */ member 71 ipx_print(netdissect_options *ndo, const u_char *p, u_int length) in ipx_print() argument 88 length = GET_BE_U_2(ipx->length); in ipx_print() 90 if (length < ipxSize) { in ipx_print() 91 ND_PRINT("[length %u < %u]", length, ipxSize); in ipx_print() 95 ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize); in ipx_print() 112 ipx_decode(netdissect_options *ndo, const struct ipxHdr *ipx, const u_char *datap, u_int length) in ipx_decode() argument 119 ND_PRINT("ipx-ncp %u", length); in ipx_decode() 122 ipx_sap_print(ndo, datap, length); in ipx_decode() 125 ipx_rip_print(ndo, datap, length); in ipx_decode() [all …]
|
H A D | print-l2tp.c | 266 print_string(netdissect_options *ndo, const u_char *dat, u_int length) in print_string() argument 269 for (i=0; i<length; i++) { in print_string() 276 print_octets(netdissect_options *ndo, const u_char *dat, u_int length) in print_octets() argument 279 for (i=0; i<length; i++) { in print_octets() 301 l2tp_msgtype_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_msgtype_print() argument 303 if (length < 2) { in l2tp_msgtype_print() 312 l2tp_result_code_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_result_code_print() argument 315 if (length < 2) { in l2tp_result_code_print() 321 length -= 2; in l2tp_result_code_print() 324 if (length == 0) in l2tp_result_code_print() [all …]
|
H A D | print-udp.c | 94 vat_print(netdissect_options *ndo, const u_char *hdr, u_int length) in vat_print() argument 100 if (length < 2) { in vat_print() 101 ND_PRINT("udp/va/vat, length %u < 2", length); in vat_print() 108 length, in vat_print() 114 if (length < 8) { in vat_print() 115 ND_PRINT("udp/vat, length %u < 8", length); in vat_print() 121 length - 8, in vat_print() 366 udp_print(netdissect_options *ndo, const u_char *bp, u_int length, in udp_print() argument 392 if (length < sizeof(struct udphdr)) { in udp_print() 394 ND_PRINT("truncated-udp %u", length); in udp_print() [all …]
|
H A D | print-ip-demux.c | 38 u_int length, u_int ver, int fragmented, u_int ttl_hl, in ip_demux_print() argument 60 length -= advance; in ip_demux_print() 65 esp_print(ndo, bp, length, iph, ver, fragmented, ttl_hl); in ip_demux_print() 88 sctp_print(ndo, bp, iph, length); in ip_demux_print() 92 dccp_print(ndo, bp, iph, length); in ip_demux_print() 96 tcp_print(ndo, bp, length, iph, fragmented); in ip_demux_print() 100 udp_print(ndo, bp, length, iph, fragmented, ttl_hl); in ip_demux_print() 105 icmp_print(ndo, bp, length, iph, fragmented); in ip_demux_print() 115 icmp6_print(ndo, bp, length, iph, fragmented); in ip_demux_print() 137 igrp_print(ndo, bp, length); in ip_demux_print() [all …]
|
H A D | print-ether.c | 136 ether_common_print(netdissect_options *ndo, const u_char *p, u_int length, in ether_common_print() argument 151 if (length < caplen) { in ether_common_print() 152 ND_PRINT("[length %u < caplen %u]", length, caplen); in ether_common_print() 154 return length; in ether_common_print() 164 orig_length = length; in ether_common_print() 176 length -= 2*MAC_ADDR_LEN; in ether_common_print() 190 length -= switch_tag_len; in ether_common_print() 202 length -= 2; in ether_common_print() 222 int ret = macsec_print(ndo, &p, &length, &caplen, &hdrlen, in ether_common_print() 240 length -= 2; in ether_common_print() [all …]
|
H A D | print-fr.c | 100 u_int *addr_len, uint32_t *flags, u_int length) in parse_q922_header() argument 102 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header() 107 if (!ND_TTEST_1(p + 1) || length < 2) in parse_q922_header() 119 length -= 2; in parse_q922_header() 120 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header() 127 length--; in parse_q922_header() 130 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header() 143 q922_string(netdissect_options *ndo, const u_char *p, u_int length) in q922_string() argument 152 ret = parse_q922_header(ndo, p, &dlci, &addr_len, &flags, length); in q922_string() 194 fr_hdr_print(netdissect_options *ndo, int length, u_int addr_len, in fr_hdr_print() argument [all …]
|
H A D | print-tftp.c | 87 const u_char *bp, u_int length) in tftp_print() argument 98 ND_PRINT(", length %u", length); in tftp_print() 101 if (length < 2) in tftp_print() 110 length -= 2; in tftp_print() 116 if (length == 0) in tftp_print() 121 ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print() 126 length -= ui; in tftp_print() 129 if (length == 0) in tftp_print() 132 ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print() 136 length -= ui; in tftp_print() [all …]
|
H A D | print-radius.c | 768 const u_char *data, u_int length, u_short attr_code) in print_attr_string() argument 772 ND_TCHECK_LEN(data, length); in print_attr_string() 776 if (length < 3) in print_attr_string() 783 length--; in print_attr_string() 786 length-=2; in print_attr_string() 795 if (length < 1) in print_attr_string() 802 length--; in print_attr_string() 806 if (length < 1) in print_attr_string() 812 length--; in print_attr_string() 815 if (length < 1) in print_attr_string() [all …]
|
H A D | print-aodv.c | 163 nd_uint8_t length; /* extension length */ member 177 const struct aodv_ext *ep, u_int length) in aodv_extension() argument 186 if (length < sizeof(struct aodv_hello)) in aodv_extension() 188 if (GET_U_1(ep->length) < 4) { in aodv_extension() 190 GET_U_1(ep->length)); in aodv_extension() 199 GET_U_1(ep->length)); in aodv_extension() 209 aodv_rreq(netdissect_options *ndo, const u_char *dat, u_int length) in aodv_rreq() argument 215 if (length < sizeof(*ap)) in aodv_rreq() 218 "\tdst %s seq %u src %s seq %u", length, in aodv_rreq() 230 i = length - sizeof(*ap); in aodv_rreq() [all …]
|
H A D | print-ppp.c | 410 static void handle_ppp(netdissect_options *, u_int proto, const u_char *p, u_int length); 415 u_int proto, const u_char *pptr, u_int length) in handle_ctrl_proto() argument 428 if (length < 4) /* FIXME weak boundary checking */ in handle_ctrl_proto() 439 length + 2); in handle_ctrl_proto() 453 if (len > length) { in handle_ctrl_proto() 454 ND_PRINT("\n\tencoded length %u (> packet length %u))", len, length); in handle_ctrl_proto() 457 length = len; in handle_ctrl_proto() 461 if (length == 4) in handle_ctrl_proto() 470 if (length < 11) in handle_ctrl_proto() 534 if (length < 6) in handle_ctrl_proto() [all …]
|
H A D | print-llc.c | 148 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, in llc_print() argument 162 if (length < 3) { in llc_print() 165 return (length); in llc_print() 194 if (length < 4) { in llc_print() 197 return (length); in llc_print() 227 ipx_print(ndo, p, length); in llc_print() 254 length -= hdrlen; in llc_print() 264 if (!snap_print(ndo, p, length, caplen, src, dst, 2)) { in llc_print() 277 stp_print(ndo, p, length); in llc_print() 289 ip_print(ndo, p, length); in llc_print() [all …]
|
H A D | print-ip.c | 54 const u_char *cp, u_int length) in ip_printroute() argument 59 if (length < 3) { in ip_printroute() 60 ND_PRINT(" [bad length %u]", length); in ip_printroute() 63 if ((length + 1) & 3) in ip_printroute() 64 ND_PRINT(" [bad length %u]", length); in ip_printroute() 66 if (ptr < 3 || ((ptr + 1) & 3) || ptr > length + 1) in ip_printroute() 69 for (len = 3; len < length; len += 4) { in ip_printroute() 92 u_int length; in ip_finddst() local 97 length = IP_HL(ip) * 4; in ip_finddst() 98 if (length < sizeof(struct ip)) in ip_finddst() [all …]
|
H A D | print-atalk.c | 94 const u_char *bp, u_int length) in llap_print() argument 103 if (length < sizeof(*lp)) { in llap_print() 104 ND_PRINT(" [|llap %u]", length); in llap_print() 105 return (length); in llap_print() 113 length -= sizeof(*lp); in llap_print() 118 if (length < ddpSSize) { in llap_print() 119 ND_PRINT(" [|sddp %u]", length); in llap_print() 120 return (length); in llap_print() 134 length -= ddpSSize; in llap_print() 136 ddp_print(ndo, bp, length, GET_U_1(sdp->type), 0, in llap_print() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | codec.c | 41 size_t length, in krb5_decode_EncTicketPart() argument 46 return decode_EncTicketPart(data, length, t, len); in krb5_decode_EncTicketPart() 52 size_t length, in krb5_encode_EncTicketPart() argument 57 return encode_EncTicketPart(data, length, t, len); in krb5_encode_EncTicketPart() 63 size_t length, in krb5_decode_EncASRepPart() argument 68 return decode_EncASRepPart(data, length, t, len); in krb5_decode_EncASRepPart() 74 size_t length, in krb5_encode_EncASRepPart() argument 79 return encode_EncASRepPart(data, length, t, len); in krb5_encode_EncASRepPart() 85 size_t length, in krb5_decode_EncTGSRepPart() argument 90 return decode_EncTGSRepPart(data, length, t, len); in krb5_decode_EncTGSRepPart() [all …]
|
H A D | aes-test.c | 45 hex_dump_data(const void *data, size_t length) in hex_dump_data() argument 49 hex_encode(data, length, &p); in hex_dump_data() 209 password.length = strlen(password.data); in string_to_key_test() 214 salt.saltvalue.length = strlen(salt.saltvalue.data); in string_to_key_test() 216 salt.saltvalue.length = keys[i].saltlen; in string_to_key_test() 219 opaque.length = sizeof(iter); in string_to_key_test() 228 PKCS5_PBKDF2_HMAC_SHA1(password.data, password.length, in string_to_key_test() 229 salt.saltvalue.data, salt.saltvalue.length, in string_to_key_test() 261 if (key.keyvalue.length != keys[i].keylen) { in string_to_key_test() 263 i, (unsigned long)key.keyvalue.length, in string_to_key_test() [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | ef10_tlv_layout.h | 118 uint32_t length; member 139 uint32_t length; member 155 uint32_t length; member 172 uint32_t length; member 189 uint32_t length; member 208 uint32_t length; member 216 uint32_t length; member 232 uint32_t length; member 240 uint32_t length; member 256 uint32_t length; member [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | lz4.c | 501 U32 length = 0; in read_variable_length() local 505 return length; in read_variable_length() 510 length += s; in read_variable_length() 513 return length; in read_variable_length() 517 return length; in read_variable_length() 566 size_t length; in LZ4_decompress_generic() local 594 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic() 599 if (length == RUN_MASK) { in LZ4_decompress_generic() 601 … length += read_variable_length(&ip, iend-RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic() 603 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic() [all …]
|
/freebsd/lib/libc/tests/sys/ |
H A D | queue_test.c | 47 int i, j, length; in ATF_TC_BODY() local 55 i = length = 0; in ATF_TC_BODY() 58 length++; in ATF_TC_BODY() 60 ATF_REQUIRE_EQ(length, 0); in ATF_TC_BODY() 73 j = length = 0; in ATF_TC_BODY() 78 length++; in ATF_TC_BODY() 80 ATF_REQUIRE_EQ(length, 1); in ATF_TC_BODY() 96 j = length = 0; in ATF_TC_BODY() 101 length++; in ATF_TC_BODY() 103 ATF_REQUIRE_EQ(length, 3); in ATF_TC_BODY() [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | 8003.c | 84 _gsskrb5_encode_om_uint32 (b->initiator_address.length, num); in hash_input_chan_bindings() 86 if (b->initiator_address.length) in hash_input_chan_bindings() 89 b->initiator_address.length); in hash_input_chan_bindings() 92 _gsskrb5_encode_om_uint32 (b->acceptor_address.length, num); in hash_input_chan_bindings() 94 if (b->acceptor_address.length) in hash_input_chan_bindings() 97 b->acceptor_address.length); in hash_input_chan_bindings() 98 _gsskrb5_encode_om_uint32 (b->application_data.length, num); in hash_input_chan_bindings() 100 if (b->application_data.length) in hash_input_chan_bindings() 103 b->application_data.length); in hash_input_chan_bindings() 130 if (fwd_data->length > 0 && (flags & GSS_C_DELEG_FLAG)) in _gsskrb5_create_8003_checksum() [all …]
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_ild.c | 275 static int imm_dec(struct pt_ild *ild, uint8_t length) in imm_dec() argument 283 if (ild->max_bytes <= length) in imm_dec() 286 ild->nominal_opcode = get_byte(ild, length); in imm_dec() 287 return length + 1; in imm_dec() 294 length += ild->imm1_bytes; in imm_dec() 295 length += ild->imm2_bytes; in imm_dec() 296 if (ild->max_bytes < length) in imm_dec() 299 return length; in imm_dec() 367 static int disp_dec(struct pt_ild *ild, uint8_t length) in disp_dec() argument 381 return imm_dec(ild, length); in disp_dec() [all …]
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | asn1_lib.c | 18 static void asn1_put_length(unsigned char **pp, int length); 160 void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag, in ASN1_put_object() argument 186 asn1_put_length(&p, length); in ASN1_put_object() 200 static void asn1_put_length(unsigned char **pp, int length) in asn1_put_length() argument 205 if (length <= 127) { in asn1_put_length() 206 *(p++) = (unsigned char)length; in asn1_put_length() 208 len = length; in asn1_put_length() 214 p[i] = length & 0xff; in asn1_put_length() 215 length >>= 8; in asn1_put_length() 222 int ASN1_object_size(int constructed, int length, int tag) in ASN1_object_size() argument [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_entry_sparse.c | 53 la_int64_t offset, la_int64_t length) in archive_entry_sparse_add_entry() argument 57 if (offset < 0 || length < 0) in archive_entry_sparse_add_entry() 60 if (offset > INT64_MAX - length || in archive_entry_sparse_add_entry() 61 offset + length > archive_entry_size(entry)) in archive_entry_sparse_add_entry() 65 if (sp->offset + sp->length > offset) in archive_entry_sparse_add_entry() 68 if (sp->offset + sp->length == offset) { in archive_entry_sparse_add_entry() 69 if (sp->offset + sp->length + length < 0) in archive_entry_sparse_add_entry() 74 sp->length += length; in archive_entry_sparse_add_entry() 84 sp->length = length; in archive_entry_sparse_add_entry() 118 sp->length >= archive_entry_size(entry)) { in archive_entry_sparse_count() [all …]
|