Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 3000) sorted by relevance

12345678910>>...120

/openbsd/src/usr.sbin/tcpdump/
Dprint-l2tp.c64 static void l2tp_msgtype_print(const u_char *dat, u_int length);
65 static void l2tp_result_code_print(const u_char *dat, u_int length);
66 static void l2tp_proto_ver_print(const u_char *dat, u_int length);
67 static void l2tp_framing_cap_print(const u_char *dat, u_int length);
68 static void l2tp_bearer_cap_print(const u_char *dat, u_int length);
69 static void l2tp_tie_breaker_print(const u_char *dat, u_int length);
70 static void l2tp_firm_ver_print(const u_char *dat, u_int length);
71 static void l2tp_host_name_print(const u_char *dat, u_int length);
72 static void l2tp_vendor_name_print(const u_char *dat, u_int length);
73 static void l2tp_assnd_tun_id_print(const u_char *dat, u_int length);
[all …]
Dprint-ofp.c101 ofp_print_hello(const u_char *bp, u_int length, u_int ohlen) in ofp_print_hello() argument
110 length -= sizeof(struct ofp_header); in ofp_print_hello()
114 length < sizeof(*he)) { in ofp_print_hello()
121 if (length < sizeof(*he)) in ofp_print_hello()
129 length -= sizeof(*he); in ofp_print_hello()
141 if (length < sizeof(bmp)) { in ofp_print_hello()
156 length -= sizeof(bmp); in ofp_print_hello()
169 length -= min(helen, length); in ofp_print_hello()
171 if (length) in ofp_print_hello()
176 ofp_print_error(const u_char *bp, u_int length) in ofp_print_error() argument
[all …]
Dprint-ether.c56 ether_print(const u_char *bp, u_int length) in ether_print() argument
66 length); in ether_print()
73 length); in ether_print()
104 ether_tryprint(const u_char *p, u_int length, int first_header) in ether_tryprint() argument
116 ether_print(p, length); in ether_tryprint()
119 length -= sizeof(struct ether_header); in ether_tryprint()
132 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep)) == 0) { in ether_tryprint()
135 ether_print((u_char *)ep, length); in ether_tryprint()
148 } else if (ether_encap_print(ether_type, p, length, caplen) == 0) { in ether_tryprint()
151 ether_print((u_char *)ep, length + sizeof(*ep)); in ether_tryprint()
[all …]
Dprint-ipx.c56 ipx_print(const u_char *p, u_int length) in ipx_print() argument
70 TCHECK(ipx->length); in ipx_print()
71 length = EXTRACT_16BITS(&ipx->length); in ipx_print()
73 ipx_decode(ipx, (u_char *)ipx + ipxSize, length - ipxSize); in ipx_print()
76 printf("[|ipx %d]", length); in ipx_print()
91 ipx_decode(const struct ipxHdr *ipx, const u_char *datap, u_int length) in ipx_decode() argument
98 printf(" ipx-ncp %d", length); in ipx_decode()
101 ipx_sap_print((u_short *)datap, length); in ipx_decode()
104 ipx_rip_print((u_short *)datap, length); in ipx_decode()
107 printf(" ipx-netbios %d", length); in ipx_decode()
[all …]
Dprint-udp.c320 udp_print(const u_char *bp, u_int length, const void *iph) in udp_print() argument
324 const u_char *ep = bp + length; in udp_print()
375 if (length < sizeof(*up)) { in udp_print()
379 printf("truncated-udp %u", length); in udp_print()
398 cksum += htons(length); in udp_print()
401 if (length < ulen) in udp_print()
402 printf(" truncated-udp - %u bytes missing!", ulen - length); in udp_print()
404 length -= sizeof(*up); in udp_print()
406 if (vflag && ipv && TTEST2(cp[0], length)) { in udp_print()
420 sum = in_cksum(cp, length, cksum); in udp_print()
[all …]
Dprint-snmp.c773 asn1_decode(u_char *p, u_int length) in asn1_decode() argument
778 while (i >= 0 && length > 0) { in asn1_decode()
779 i = asn1_parse(p, length, &elem); in asn1_decode()
788 length -= i; in asn1_decode()
832 varbind_print(u_char pduid, const u_char *np, u_int length, int error) in varbind_print() argument
838 if ((count = asn1_parse(np, length, &elem)) < 0) in varbind_print()
845 if (count < length) in varbind_print()
846 printf("[%d extra after SEQ of varbind]", length - count); in varbind_print()
848 length = elem.asnlen; in varbind_print()
851 for (ind = 1; length > 0; ind++) { in varbind_print()
[all …]
Dprint-gre.c92 gre_print(const u_char *p, u_int length) in gre_print() argument
107 gre_print_0(p, length); in gre_print()
110 gre_print_1(p, length); in gre_print()
119 gre_print_0(const u_char *p, u_int length) in gre_print_0() argument
129 length -= sizeof(flags); in gre_print_0()
147 length -= sizeof(proto); in gre_print_0()
159 length -= 2; in gre_print_0()
167 length -= 2; in gre_print_0()
178 length -= sizeof(key); in gre_print_0()
192 length -= 4; in gre_print_0()
[all …]
Dprint-atalk.c94 atalk_print(const u_char *bp, u_int length) in atalk_print() argument
99 if (length < ddpSize) { in atalk_print()
100 printf(" [|ddp %d]", length); in atalk_print()
111 length -= ddpSize; in atalk_print()
112 ddp_print(bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in atalk_print()
122 atalk_print_llap(const u_char *bp, u_int length) in atalk_print_llap() argument
129 if (length < sizeof(*lp)) { in atalk_print_llap()
130 printf(" [|llap %d]", length); in atalk_print_llap()
136 length -= sizeof(*lp); in atalk_print_llap()
140 if (length < ddpSSize) { in atalk_print_llap()
[all …]
/openbsd/src/gnu/lib/libiberty/src/
Ddyn-string.c82 ds_struct_ptr->length = 0; in dyn_string_init()
185 ds->length = 0; in dyn_string_clear()
199 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
204 dest->length = src->length; in dyn_string_copy()
215 int length = strlen (src); in dyn_string_copy_cstr() local
217 if (dyn_string_resize (dest, length) == NULL) in dyn_string_copy_cstr()
222 dest->length = length; in dyn_string_copy_cstr()
260 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
263 for (i = dest->length; i >= pos; --i) in dyn_string_insert()
264 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
[all …]
/openbsd/src/gnu/usr.bin/perl/t/op/
Dlength.t14 is(length(""), 0);
15 is(length("abc"), 3);
17 is(length(), 6);
23 is(length($a), 1);
27 is(length($a), 1);
33 is(length($a), 1);
37 is(length($a), 2);
43 is(length($a), 1);
47 is(length($a), 2);
53 is(length($a), 1);
[all …]
Dquotemeta.t19 is(length($_), 158, "quotemeta string");
28 is(length($_), 129, "quotemeta string");
33 is(length(quotemeta ""), 0, "quotemeta empty string");
49 is(length(quotemeta("\x{263a}")), 2, "quotemeta Unicode quoted length");
51 is(length(quotemeta("\x{100}")), 1, "quotemeta Unicode nonquoted length");
56 is(length(quotemeta($char)), 2, "quotemeta '$char' in UTF-8 length");
61 is(length(quotemeta($char)), 1, "quotemeta '$char' in UTF-8 length");
66 is(length(quotemeta($char)), 2, "quotemeta '\\N{U+D7}' in UTF-8 length");
71 is(length(quotemeta($char)), 1, "quotemeta '\\N{U+DF}' in UTF-8 length");
79 is(length(quotemeta("\x{bf}")), 2, "quotemeta Latin1 no unicode_strings quoted length");
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/binutils/
Dresbin.c85 unsigned long length, int big_endian) in bin_to_res() argument
88 return bin_to_res_userdata (data, length, big_endian); in bin_to_res()
94 return bin_to_res_userdata (data, length, big_endian); in bin_to_res()
96 return bin_to_res_cursor (data, length, big_endian); in bin_to_res()
98 return bin_to_res_generic (RES_TYPE_BITMAP, data, length); in bin_to_res()
100 return bin_to_res_generic (RES_TYPE_ICON, data, length); in bin_to_res()
102 return bin_to_res_menu (data, length, big_endian); in bin_to_res()
104 return bin_to_res_dialog (data, length, big_endian); in bin_to_res()
106 return bin_to_res_string (data, length, big_endian); in bin_to_res()
108 return bin_to_res_fontdir (data, length, big_endian); in bin_to_res()
[all …]
/openbsd/src/usr.bin/dig/lib/dns/rdata/generic/
Dopt_41.c29 uint16_t length; in totext_opt() local
39 while (r.length > 0) { in totext_opt()
42 length = uint16_fromregion(&r); in totext_opt()
44 snprintf(buf, sizeof(buf), "%u %u", option, length); in totext_opt()
46 INSIST(r.length >= length); in totext_opt()
47 if (length > 0) { in totext_opt()
52 or.length = length; in totext_opt()
59 isc_region_consume(&r, length); in totext_opt()
63 if (r.length > 0) in totext_opt()
75 uint16_t length; in fromwire_opt() local
[all …]
Dhip_55.c30 unsigned int length, key_len, hit_len; in totext_hip() local
35 REQUIRE(rdata->length != 0); in totext_hip()
60 INSIST(hit_len < region.length); in totext_hip()
61 length = region.length; in totext_hip()
62 region.length = hit_len; in totext_hip()
64 region.length = length - hit_len; in totext_hip()
70 INSIST(key_len <= region.length); in totext_hip()
71 length = region.length; in totext_hip()
72 region.length = key_len; in totext_hip()
74 region.length = length - key_len; in totext_hip()
[all …]
/openbsd/src/gnu/usr.bin/binutils/binutils/
Dresbin.c85 unsigned long length, int big_endian) in bin_to_res() argument
88 return bin_to_res_userdata (data, length, big_endian); in bin_to_res()
94 return bin_to_res_userdata (data, length, big_endian); in bin_to_res()
96 return bin_to_res_cursor (data, length, big_endian); in bin_to_res()
98 return bin_to_res_generic (RES_TYPE_BITMAP, data, length); in bin_to_res()
100 return bin_to_res_generic (RES_TYPE_ICON, data, length); in bin_to_res()
102 return bin_to_res_menu (data, length, big_endian); in bin_to_res()
104 return bin_to_res_dialog (data, length, big_endian); in bin_to_res()
106 return bin_to_res_string (data, length, big_endian); in bin_to_res()
108 return bin_to_res_fontdir (data, length, big_endian); in bin_to_res()
[all …]
/openbsd/src/lib/libradius/
Dradius_attr.c87 const void **ptr, size_t * length) in radius_get_raw_attr_ptr() argument
90 *length = attr->length - 2; in radius_get_raw_attr_ptr()
100 uint8_t vtype, const void **ptr, size_t * length) in radius_get_vs_raw_attr_ptr() argument
103 *length = attr->vlength - 2; in radius_get_vs_raw_attr_ptr()
113 size_t * length) in radius_get_raw_attr() argument
116 *length = MINIMUM(attr->length - 2, *length); in radius_get_raw_attr()
117 memcpy(buf, attr->data, *length); in radius_get_raw_attr()
126 uint8_t vtype, void *buf, size_t * length) in radius_get_vs_raw_attr() argument
129 *length = MINIMUM(attr->vlength - 2, *length); in radius_get_vs_raw_attr()
130 memcpy(buf, attr->vdata, *length); in radius_get_vs_raw_attr()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/opcodes/
Dmt-dis.c71 int length ATTRIBUTE_UNUSED) in print_dollarhex()
78 print_normal (cd, dis_info, value, attrs, pc, length); in print_dollarhex()
87 int length ATTRIBUTE_UNUSED) in print_pcrel()
89 print_address (cd, dis_info, value + pc, attrs, pc, length); in print_pcrel()
119 int length) in mt_cgen_print_operand() argument
126 print_dollarhex (cd, info, fields->f_a23, 0, pc, length); in mt_cgen_print_operand()
129 print_dollarhex (cd, info, fields->f_ball, 0, pc, length); in mt_cgen_print_operand()
132 print_dollarhex (cd, info, fields->f_ball2, 0, pc, length); in mt_cgen_print_operand()
135 print_dollarhex (cd, info, fields->f_bankaddr, 0, pc, length); in mt_cgen_print_operand()
138 print_dollarhex (cd, info, fields->f_brc, 0, pc, length); in mt_cgen_print_operand()
[all …]
Dm32c-dis.c82 int length ATTRIBUTE_UNUSED) in print_S()
94 int length ATTRIBUTE_UNUSED) in print_G()
105 int length ATTRIBUTE_UNUSED) in print_Q()
116 int length ATTRIBUTE_UNUSED) in print_Z()
129 int length ATTRIBUTE_UNUSED) in print_X()
140 int length ATTRIBUTE_UNUSED) in print_r0l_r0h()
156 int length ATTRIBUTE_UNUSED) in print_unsigned_bitbase()
169 int length ATTRIBUTE_UNUSED) in print_signed_bitbase()
182 int length ATTRIBUTE_UNUSED) in print_size()
204 int length ATTRIBUTE_UNUSED, in print_regset()
[all …]
Dxc16x-dis.c63 #define CGEN_PRINT_NORMAL(cd, info, value, attrs, pc, length) \ argument
83 int length ATTRIBUTE_UNUSED) in print_pof()
95 int length ATTRIBUTE_UNUSED) in print_pag()
107 int length ATTRIBUTE_UNUSED) in print_sof()
122 int length ATTRIBUTE_UNUSED) in print_seg()
137 int length ATTRIBUTE_UNUSED) in print_hash()
152 int length ATTRIBUTE_UNUSED) in print_dot()
183 int length) in xc16x_cgen_print_operand() argument
193 print_normal (cd, info, fields->f_op_1bit, 0, pc, length); in xc16x_cgen_print_operand()
196 print_normal (cd, info, fields->f_op_bit1, 0, pc, length); in xc16x_cgen_print_operand()
[all …]
/openbsd/src/gnu/usr.bin/texinfo/intl/
Dprintf.c86 size_t length; in libintl_vfprintf() local
87 char *result = libintl_vasnprintf (NULL, &length, format, args); in libintl_vfprintf()
91 if (fwrite (result, 1, length, stream) == length) in libintl_vfprintf()
92 retval = length; in libintl_vfprintf()
140 size_t length = (size_t) ~0 / (4 * sizeof (char)); in libintl_vsprintf() local
141 char *result = libintl_vasnprintf (resultbuf, &length, format, args); in libintl_vsprintf()
148 return length; in libintl_vsprintf()
177 libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args) in libintl_vsnprintf() argument
180 return system_vsnprintf (resultbuf, length, format, args); in libintl_vsnprintf()
183 size_t maxlength = length; in libintl_vsnprintf()
[all …]
/openbsd/src/regress/gnu/egcs/gcc-bounds/
Dbuiltins-1.c.exp.gcc42 builtins-1.c:12: warning: array size (100) smaller than bound length (200)
3 builtins-1.c:12: warning: array size (100) smaller than bound length (200)
4 builtins-1.c:13: warning: array size (50) smaller than bound length (100)
5 builtins-1.c:13: warning: array size (50) smaller than bound length (100)
6 builtins-1.c:14: warning: array size (50) smaller than bound length (105)
7 builtins-1.c:14: warning: array size (100) smaller than bound length (105)
8 builtins-1.c:14: warning: array size (50) smaller than bound length (105)
9 builtins-1.c:14: warning: array size (100) smaller than bound length (105)
10 builtins-1.c:15: warning: array size (100) smaller than bound length (500)
11 builtins-1.c:15: warning: array size (100) smaller than bound length (500)
[all …]
/openbsd/src/lib/libcrypto/asn1/
Dasn1_old_lib.c68 static void asn1_put_length(unsigned char **pp, int length);
77 size_t length; in ASN1_get_object() local
88 &indefinite, &length)) { in ASN1_get_object()
103 if (length > CBS_len(&cbs) || length > LONG_MAX) { in ASN1_get_object()
110 *plength = length; in ASN1_get_object()
126 ASN1_put_object(unsigned char **pp, int constructed, int length, int tag, in ASN1_put_object() argument
152 asn1_put_length(&p, length); in ASN1_put_object()
170 asn1_put_length(unsigned char **pp, int length) in asn1_put_length() argument
175 if (length <= 127) in asn1_put_length()
176 *(p++) = (unsigned char)length; in asn1_put_length()
[all …]
/openbsd/src/usr.bin/dig/lib/dns/
Dname.c127 name->length = 0; \
163 name->length = 0; in dns_name_init()
178 name->length = 0; in dns_name_reset()
192 name->length = 0; in dns_name_invalidate()
226 unsigned int length; in dns_name_hash() local
235 length = name->length; in dns_name_hash()
236 if (length > 16) in dns_name_hash()
237 length = 16; in dns_name_hash()
239 return (isc_hash_function_reverse(name->ndata, length, in dns_name_hash()
424 if (name1->length != name2->length) in dns_name_equal()
[all …]
/openbsd/src/gnu/usr.bin/binutils/opcodes/
Dfr30-dis.c114 print_hi_register_list_ld (cd, dis_info, value, attrs, pc, length) in print_hi_register_list_ld() argument
120 int length ATTRIBUTE_UNUSED;
126 print_low_register_list_ld (cd, dis_info, value, attrs, pc, length) in print_low_register_list_ld() argument
132 int length ATTRIBUTE_UNUSED;
138 print_hi_register_list_st (cd, dis_info, value, attrs, pc, length) in print_hi_register_list_st() argument
144 int length ATTRIBUTE_UNUSED;
150 print_low_register_list_st (cd, dis_info, value, attrs, pc, length) in print_low_register_list_st() argument
156 int length ATTRIBUTE_UNUSED;
162 print_m4 (cd, dis_info, value, attrs, pc, length) in print_m4() argument
168 int length ATTRIBUTE_UNUSED;
[all …]
Diq2000-dis.c82 iq2000_cgen_print_operand (cd, opindex, xinfo, fields, attrs, pc, length) in iq2000_cgen_print_operand() argument
89 int length;
99 print_address (cd, info, fields->f_imm, 0, pc, length);
102 print_normal (cd, info, fields->f_rt, 0, pc, length);
105 print_normal (cd, info, fields->f_bytecount, 0, pc, length);
108 print_normal (cd, info, fields->f_cam_y, 0, pc, length);
111 print_normal (cd, info, fields->f_cam_z, 0, pc, length);
114 print_normal (cd, info, fields->f_cm_3func, 0, pc, length);
117 print_normal (cd, info, fields->f_cm_3z, 0, pc, length);
120 print_normal (cd, info, fields->f_cm_4func, 0, pc, length);
[all …]

12345678910>>...120