Home
last modified time | relevance | path

Searched refs:tlen (Results 1 – 25 of 164) sorted by relevance

1234567

/freebsd/contrib/tcpdump/
H A Dprint-isoclns.c2372 tlen -= 2; in isis_print_router_cap_subtlv()
2440 tlen -= subl; in isis_print_router_cap_subtlv()
2885 tlen--; in isis_print()
2892 tlen -= alen; in isis_print()
2985 tlen--; in isis_print()
3110 tlen--; in isis_print()
3159 tlen--; in isis_print()
3262 tlen--; in isis_print()
3277 if (tlen < 4) in isis_print()
3322 tlen--; in isis_print()
[all …]
H A Dprint-rpki-rtr.c290 tlen = sizeof(rpki_rtr_pdu); in rpki_rtr_pdu_print()
292 if (pdu_len < tlen + 4) in rpki_rtr_pdu_print()
294 ND_TCHECK_LEN(tptr, tlen + 4); in rpki_rtr_pdu_print()
300 tlen += 4; in rpki_rtr_pdu_print()
328 rpki_rtr_pdu_print(ndo, tptr + tlen, in rpki_rtr_pdu_print()
331 tlen += encapsulated_pdu_length; in rpki_rtr_pdu_print()
334 if (pdu_len < tlen + 4) in rpki_rtr_pdu_print()
336 ND_TCHECK_LEN(tptr, tlen + 4); in rpki_rtr_pdu_print()
344 text_length = GET_BE_U_4(tptr + tlen); in rpki_rtr_pdu_print()
345 tlen += 4; in rpki_rtr_pdu_print()
[all …]
H A Dprint-lwapp.c173 u_int tlen; in lwapp_control_print() local
209 tlen=GET_BE_U_2(lwapp_trans_header->length); in lwapp_control_print()
217 tlen); in lwapp_control_print()
226 while(tlen!=0) { in lwapp_control_print()
306 u_int tlen; in lwapp_data_print() local
338 tlen=GET_BE_U_2(lwapp_trans_header->length); in lwapp_data_print()
339 if (tlen < sizeof(struct lwapp_transport_header)) { in lwapp_data_print()
345 tlen); in lwapp_data_print()
355 tlen); in lwapp_data_print()
358 tlen-=sizeof(struct lwapp_transport_header); in lwapp_data_print()
[all …]
H A Dprint-sflow.c487 u_int tlen; in sflow_print_counter_records() local
495 tlen = len; in sflow_print_counter_records()
516 if (tlen < counter_len) in sflow_print_counter_records()
551 tlen -= counter_len; in sflow_print_counter_records()
676 u_int tlen; in sflow_print_flow_records() local
684 tlen = len; in sflow_print_flow_records()
709 if (tlen < flow_len) in sflow_print_flow_records()
748 tlen -= flow_len; in sflow_print_flow_records()
823 u_int tlen; in sflow_print() local
830 tlen = len; in sflow_print()
[all …]
H A Dprint-cfm.c333 if (first_tlv_offset > tlen) { in cfm_print()
346 if (tlen < sizeof(*msg_ptr.cfm_ccm)) in cfm_print()
475 if (tlen < sizeof(*msg_ptr.cfm_ltm)) in cfm_print()
529 tlen -= first_tlv_offset; in cfm_print()
531 while (tlen > 0) { in cfm_print()
559 if (tlen < cfm_tlv_len) in cfm_print()
613 tlen--; in cfm_print()
687 tlen--; in cfm_print()
702 tlen -= mgmt_addr_length; in cfm_print()
717 tlen--; in cfm_print()
[all …]
H A Dprint-slow.c358 while(tlen>0) { in slow_marker_lacp_print()
390 if (tlen < tlv_len) in slow_marker_lacp_print()
471 tlen-=tlv_len; in slow_marker_lacp_print()
528 while (tlen > 0) { in slow_oam_print()
555 if (tlen < length) in slow_oam_print()
611 tlen -= length; in slow_oam_print()
618 if (tlen < 2) in slow_oam_print()
621 tlen -= 2; in slow_oam_print()
625 while (tlen > 0) { in slow_oam_print()
701 tlen -= length; in slow_oam_print()
[all …]
H A Dprint-vqp.c109 u_int tlen; in vqp_print() local
114 tlen = len; in vqp_print()
117 if (sizeof(struct vqp_common_header_t) > tlen) in vqp_print()
154 tlen-=sizeof(struct vqp_common_header_t); in vqp_print()
156 while (nitems != 0 && tlen != 0) { in vqp_print()
160 if (sizeof(struct vqp_obj_tlv_t) > tlen) in vqp_print()
165 tlen-=sizeof(struct vqp_obj_tlv_t); in vqp_print()
178 if (vqp_obj_len > tlen) in vqp_print()
208 tlen -= vqp_obj_len; in vqp_print()
H A Dprint-bgp.c1260 tlen = plen; in decode_labeled_vpn_l2()
1275 tlen -= 12; in decode_labeled_vpn_l2()
1290 tlen -= 15; in decode_labeled_vpn_l2()
1878 u_int tlen; in bgp_attr_print() local
1886 tlen = len; in bgp_attr_print()
2016 tlen -=4; in bgp_attr_print()
2053 tlen -= 3; in bgp_attr_print()
2060 tlen--; in bgp_attr_print()
2212 tlen--; in bgp_attr_print()
2218 if (tlen < 1) in bgp_attr_print()
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pk1.c28 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_type_1() argument
34 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1()
45 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1()
112 if (j > tlen) { in RSA_padding_check_PKCS1_type_1()
128 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in ossl_rsa_padding_add_PKCS1_type_2_ex()
142 j = tlen - 3 - flen; in ossl_rsa_padding_add_PKCS1_type_2_ex()
177 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_type_2()
238 good &= constant_time_ge(tlen, mlen); in RSA_padding_check_PKCS1_type_2()
250 tlen = constant_time_select_int(constant_time_lt(num - RSA_PKCS1_PADDING_SIZE, tlen), in RSA_padding_check_PKCS1_type_2()
257 for (i = 0; i < tlen; i++) { in RSA_padding_check_PKCS1_type_2()
[all …]
H A Drsa_none.c20 int RSA_padding_add_none(unsigned char *to, int tlen, in RSA_padding_add_none() argument
23 if (flen > tlen) { in RSA_padding_add_none()
28 if (flen < tlen) { in RSA_padding_add_none()
37 int RSA_padding_check_none(unsigned char *to, int tlen, in RSA_padding_check_none() argument
41 if (flen > tlen) { in RSA_padding_check_none()
46 memset(to, 0, tlen - flen); in RSA_padding_check_none()
47 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
48 return tlen; in RSA_padding_check_none()
H A Drsa_oaep.c39 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_OAEP() argument
55 unsigned char *to, int tlen, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument
62 int i, emlen = tlen - 1; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
141 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument
150 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP() argument
158 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP_mgf1() argument
189 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_OAEP_mgf1()
281 good &= constant_time_ge(tlen, mlen); in RSA_padding_check_PKCS1_OAEP_mgf1()
293 tlen = constant_time_select_int(constant_time_lt(dblen - mdlen - 1, tlen), in RSA_padding_check_PKCS1_OAEP_mgf1()
294 dblen - mdlen - 1, tlen); in RSA_padding_check_PKCS1_OAEP_mgf1()
[all …]
/freebsd/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c139 int32_t tlen; in ctf_get_enet_type() local
423 tlen); in ctf_process_inbound_raw()
428 tlen -= off; in ctf_process_inbound_raw()
444 tlen = 0; in ctf_process_inbound_raw()
578 int32_t tlen; in _ctf_drop_checks() local
581 tlen = *tlenp; in _ctf_drop_checks()
609 todrop = tlen; in _ctf_drop_checks()
631 tlen -= todrop; in _ctf_drop_checks()
665 tlen -= todrop; in _ctf_drop_checks()
669 *tlenp = tlen; in _ctf_drop_checks()
[all …]
/freebsd/contrib/bearssl/src/rsa/
H A Drsa_i15_modulus.c34 size_t nlen, plen, qlen, tlen; in br_rsa_i15_compute_modulus() local
53 tlen = (sizeof tmp) / (sizeof tmp[0]); in br_rsa_i15_compute_modulus()
58 if ((15 * tlen) < (plen << 3) + 15) { in br_rsa_i15_compute_modulus()
65 tlen -= plen; in br_rsa_i15_compute_modulus()
70 if ((15 * tlen) < (qlen << 3) + 15) { in br_rsa_i15_compute_modulus()
77 tlen -= qlen; in br_rsa_i15_compute_modulus()
83 if (tlen < (plen + qlen + 1)) { in br_rsa_i15_compute_modulus()
H A Drsa_i31_modulus.c34 size_t nlen, plen, qlen, tlen; in br_rsa_i31_compute_modulus() local
53 tlen = (sizeof tmp) / (sizeof tmp[0]); in br_rsa_i31_compute_modulus()
58 if ((31 * tlen) < (plen << 3) + 31) { in br_rsa_i31_compute_modulus()
65 tlen -= plen; in br_rsa_i31_compute_modulus()
70 if ((31 * tlen) < (qlen << 3) + 31) { in br_rsa_i31_compute_modulus()
77 tlen -= qlen; in br_rsa_i31_compute_modulus()
83 if (tlen < (plen + qlen + 1)) { in br_rsa_i31_compute_modulus()
/freebsd/contrib/nvi/common/
H A Ddelete.c35 size_t blen, len, nlen, tlen; in del() local
107 if ((tlen = fm->cno) != 0) { in del()
110 GET_SPACE_RETW(sp, bp, blen, tlen + 256); in del()
111 MEMCPY(bp, p, tlen); in del()
124 nlen = (len - (tm->cno + 1)) + tlen; in del()
125 if (tlen > nlen) { in del()
129 if (tlen == 0) { in del()
134 MEMCPY(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1)); in del()
135 tlen += len - (tm->cno + 1); in del()
139 if (db_set(sp, fm->lno, bp, tlen)) in del()
/freebsd/contrib/bearssl/src/int/
H A Di15_decmod.c55 size_t mlen, tlen; in br_i15_decode_mod() local
61 tlen = (mlen << 1); in br_i15_decode_mod()
62 if (tlen < len) { in br_i15_decode_mod()
63 tlen = len; in br_i15_decode_mod()
65 tlen += 4; in br_i15_decode_mod()
75 for (u = 0; u < tlen; u ++) { in br_i15_decode_mod()
H A Di31_decmod.c55 size_t mlen, tlen; in br_i31_decode_mod() local
61 tlen = (mlen << 2); in br_i31_decode_mod()
62 if (tlen < len) { in br_i31_decode_mod()
63 tlen = len; in br_i31_decode_mod()
65 tlen += 4; in br_i31_decode_mod()
75 for (u = 0; u < tlen; u ++) { in br_i31_decode_mod()
/freebsd/usr.sbin/fwcontrol/
H A Dfwdv.c134 tlen = 0; in dvrecv()
146 tlen += len; in dvrecv()
147 if ((RBUFSIZE - tlen) < PSIZE) in dvrecv()
151 tlen = len = read(d, buf, RBUFSIZE); in dvrecv()
240 if ((char *)ptr < buf + tlen) in dvrecv()
320 tlen = 0; in dvsend()
321 while (tlen < DSIZE * TNBUF) { in dvsend()
322 len = read(fd, pbuf + tlen, DSIZE * TNBUF - tlen); in dvsend()
324 if (tlen > 0) in dvsend()
332 tlen += len; in dvsend()
[all …]
/freebsd/sys/netinet/libalias/
H A Dalias_ftp.c223 int hlen, tlen, dlen, pflags; in AliasHandleFtpOut() local
231 tlen = ntohs(pip->ip_len); in AliasHandleFtpOut()
232 dlen = tlen - hlen; in AliasHandleFtpOut()
270 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') in AliasHandleFtpOut()
283 int hlen, tlen, dlen, pflags; in AliasHandleFtpIn() local
290 tlen = ntohs(pip->ip_len); in AliasHandleFtpIn()
291 dlen = tlen - hlen; in AliasHandleFtpIn()
320 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') in AliasHandleFtpIn()
654 int slen, hlen, tlen, dlen; in NewFtpMessage() local
665 tlen = ntohs(pip->ip_len); in NewFtpMessage()
[all …]
/freebsd/contrib/file/src/
H A Dder.c276 uint32_t tlen = getlength(b, &offs, len); in der_offs() local
277 if (tlen == DER_BAD) { in der_offs()
282 offs, tlen)); in der_offs()
293 if (offs + tlen > nbytes) in der_offs()
308 uint32_t tag, tlen; in der_cmp() local
322 tlen = getlength(b, &offs, len); in der_cmp()
323 if (tlen == DER_BAD) { in der_cmp()
361 __func__, slen, tlen); in der_cmp()
362 if (tlen != slen) { in der_cmp()
370 tlen)); in der_cmp()
[all …]
/freebsd/usr.bin/tail/
H A Dread.c66 int ch, len, tlen; in bytes() local
94 tlen = len; in bytes()
101 if (tlen) { in bytes()
102 WR(sp, tlen); in bytes()
103 tlen = 0; in bytes()
108 if (tlen) in bytes()
109 WR(sp, tlen); in bytes()
/freebsd/sys/dev/syscons/daemon/
H A Ddaemon_saver.c212 static int xlen, ylen, tlen; in daemon_saver() local
231 xlen = ylen = tlen = 0; in daemon_saver()
238 clear_string(sc, txpos, typos, toff, message, tlen); in daemon_saver()
333 tlen = messagelen; in daemon_saver()
334 if (txpos + tlen <= 0) in daemon_saver()
335 tlen = 0; in daemon_saver()
339 tlen = 0; in daemon_saver()
340 else if (txpos + tlen > scp->xsize) in daemon_saver()
341 tlen = scp->xsize - txpos; in daemon_saver()
344 draw_string(sc, txpos, typos, toff, message, tlen); in daemon_saver()
/freebsd/crypto/openssl/doc/man3/
H A DRSA_padding_add_PKCS1_type_1.pod20 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
23 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,
26 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,
29 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
32 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
36 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
40 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
45 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
50 int RSA_padding_add_none(unsigned char *to, int tlen,
53 int RSA_padding_check_none(unsigned char *to, int tlen,
[all …]
/freebsd/lib/libipsec/
H A Dpolicy_parse.y73 static int tlen = 0; /* total length of pbuf */ variable
296 tlen = sizeof(struct sadb_x_policy); in init_x_policy()
298 pbuf = malloc(tlen); in init_x_policy()
303 memset(pbuf, 0, tlen); in init_x_policy()
311 offset = tlen; in init_x_policy()
326 tlen += reqlen; /* increment to total length */ in set_x_request()
328 pbuf = realloc(pbuf, tlen); in set_x_request()
390 tlen = 0; in policy_parse()
408 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen); in policy_parse()
/freebsd/contrib/ntp/libntp/
H A Dnumtoa.c48 size_t tlen; in refid_str() local
65 tlen = strlen(text); in refid_str()
66 text[tlen] = '.'; in refid_str()
67 text[tlen + 1] = '\0'; in refid_str()

1234567