Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/tcpdump/
H A Dprint-isoclns.c829 …u_int li,li_remaining,tlen,nsap_offset,source_address_length,dest_address_length, clnp_pdu_type, c… in clnp_print() local
976 tlen = opli; in clnp_print()
996 if (tlen < 2) { in clnp_print()
1009 if (nsap_offset > tlen) { in clnp_print()
1014 tlen-=nsap_offset; in clnp_print()
1015 while (tlen > 0) { in clnp_print()
1017 if (tlen < source_address_length+1) { in clnp_print()
1027 tlen-=source_address_length+1; in clnp_print()
1032 if (tlen < 1) { in clnp_print()
1040 if (tlen < 1) { in clnp_print()
[all …]
H A Dprint-sflow.c485 u_int tlen; in sflow_print_counter_records() local
493 tlen = len; in sflow_print_counter_records()
497 if (tlen < sizeof(struct sflow_counter_record_t)) in sflow_print_counter_records()
512 tlen -= sizeof(struct sflow_counter_record_t); in sflow_print_counter_records()
514 if (tlen < counter_len) in sflow_print_counter_records()
519 if (print_sflow_counter_generic(ndo, tptr, tlen)) in sflow_print_counter_records()
523 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) in sflow_print_counter_records()
527 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) in sflow_print_counter_records()
531 if (print_sflow_counter_basevg(ndo, tptr, tlen)) in sflow_print_counter_records()
535 if (print_sflow_counter_vlan(ndo, tptr, tlen)) in sflow_print_counter_records()
[all …]
H A Dprint-lwapp.c171 u_int tlen; in lwapp_control_print() local
207 tlen=GET_BE_U_2(lwapp_trans_header->length); in lwapp_control_print()
215 tlen); in lwapp_control_print()
224 while(tlen!=0) { in lwapp_control_print()
228 if (tlen < sizeof(struct lwapp_control_header)) { in lwapp_control_print()
235 if (tlen < sizeof(struct lwapp_control_header) + msg_tlen) { in lwapp_control_print()
290 tlen -= sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print()
304 u_int tlen; in lwapp_data_print() local
336 tlen=GET_BE_U_2(lwapp_trans_header->length); in lwapp_data_print()
337 if (tlen < sizeof(struct lwapp_transport_header)) { in lwapp_data_print()
[all …]
H A Dprint-rpki-rtr.c286 u_int encapsulated_pdu_length, text_length, tlen, error_code; in rpki_rtr_pdu_print() local
288 tlen = sizeof(rpki_rtr_pdu); in rpki_rtr_pdu_print()
290 if (pdu_len < tlen + 4) in rpki_rtr_pdu_print()
294 tlen += 4; in rpki_rtr_pdu_print()
318 if (pdu_len < tlen + encapsulated_pdu_length) in rpki_rtr_pdu_print()
321 ND_TCHECK_LEN(tptr, tlen + encapsulated_pdu_length); in rpki_rtr_pdu_print()
324 rpki_rtr_pdu_print(ndo, tptr + tlen, in rpki_rtr_pdu_print()
327 tlen += encapsulated_pdu_length; in rpki_rtr_pdu_print()
330 if (pdu_len < tlen + 4) in rpki_rtr_pdu_print()
335 text_length = GET_BE_U_4(tptr + tlen); in rpki_rtr_pdu_print()
[all …]
H A Dprint-cfm.c280 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; in cfm_print() local
326 tlen = length - sizeof(struct cfm_common_header_t); in cfm_print()
331 if (first_tlv_offset > tlen) { in cfm_print()
332 ND_PRINT(" (too large, must be <= %u)", tlen); in cfm_print()
344 if (tlen < sizeof(*msg_ptr.cfm_ccm)) in cfm_print()
473 if (tlen < sizeof(*msg_ptr.cfm_ltm)) in cfm_print()
496 if (tlen < sizeof(*msg_ptr.cfm_ltr)) in cfm_print()
522 tlen - first_tlv_offset); in cfm_print()
527 tlen -= first_tlv_offset; in cfm_print()
529 while (tlen > 0) { in cfm_print()
[all …]
H A Dprint-slow.c342 const u_char *tptr, u_int tlen, in slow_marker_lacp_print() argument
356 while(tlen>0) { in slow_marker_lacp_print()
358 if (tlen < sizeof(struct tlv_header_t)) in slow_marker_lacp_print()
388 if (tlen < tlv_len) in slow_marker_lacp_print()
469 tlen-=tlv_len; in slow_marker_lacp_print()
479 const u_char *tptr, u_int tlen) in slow_oam_print() argument
511 if (tlen < sizeof(*ptr.slow_oam_common_header)) in slow_oam_print()
515 tlen -= sizeof(struct slow_oam_common_header_t); in slow_oam_print()
526 while (tlen > 0) { in slow_oam_print()
528 if (tlen < sizeof(*ptr.slow_oam_tlv_header)) in slow_oam_print()
[all …]
H A Dprint-vqp.c107 u_int tlen; in vqp_print() local
112 tlen = len; in vqp_print()
115 if (sizeof(struct vqp_common_header_t) > tlen) in vqp_print()
152 tlen-=sizeof(struct vqp_common_header_t); in vqp_print()
154 while (nitems != 0 && tlen != 0) { in vqp_print()
158 if (sizeof(struct vqp_obj_tlv_t) > tlen) in vqp_print()
163 tlen-=sizeof(struct vqp_obj_tlv_t); in vqp_print()
176 if (vqp_obj_len > tlen) in vqp_print()
206 tlen -= vqp_obj_len; in vqp_print()
H A Dprint-bgp.c1256 u_int plen, tlen, tlv_type, tlv_len, ttlv_len; in decode_labeled_vpn_l2() local
1260 tlen = plen; in decode_labeled_vpn_l2()
1275 tlen -= 12; in decode_labeled_vpn_l2()
1290 tlen -= 15; in decode_labeled_vpn_l2()
1293 while (tlen != 0) { in decode_labeled_vpn_l2()
1294 if (tlen < 3) { in decode_labeled_vpn_l2()
1316 if (tlen < 1) { in decode_labeled_vpn_l2()
1331 tlen--; in decode_labeled_vpn_l2()
1341 if (tlen < ttlv_len) { in decode_labeled_vpn_l2()
1348 tlen -= ttlv_len; in decode_labeled_vpn_l2()
[all …]
/freebsd/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c139 int32_t tlen; in ctf_get_enet_type() local
181 tlen = ntohs(ip6->ip6_plen); in ctf_get_enet_type()
186 th->th_sum = in6_cksum_pseudo(ip6, tlen, in ctf_get_enet_type()
191 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen); in ctf_get_enet_type()
214 tlen = ntohs(ip->ip_len) - sizeof(struct ip); in ctf_get_enet_type()
221 htonl(m->m_pkthdr.csum_data + tlen + IPPROTO_TCP)); in ctf_get_enet_type()
229 len = drop_hdrlen + tlen; in ctf_get_enet_type()
231 ipov->ih_len = htons(tlen); in ctf_get_enet_type()
361 int32_t retval, nxt_pkt, tlen, off; in ctf_process_inbound_raw() local
392 tlen = ntohs(ip6->ip6_plen); in ctf_process_inbound_raw()
[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()
53 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_type_1() argument
112 if (j > tlen) { in RSA_padding_check_PKCS1_type_1()
122 int tlen, const unsigned char *from, in ossl_rsa_padding_add_PKCS1_type_2_ex() argument
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()
161 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_type_2() argument
164 return ossl_rsa_padding_add_PKCS1_type_2_ex(NULL, to, tlen, from, flen); in RSA_padding_add_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
43 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP()
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
146 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP_mgf1()
150 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP() argument
154 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, in RSA_padding_check_PKCS1_OAEP()
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 || mdlen <= 0) in RSA_padding_check_PKCS1_OAEP_mgf1()
[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.c100 int len, tlen, npad, fd, k, m, vec, system = -1, nb; in dvrecv() local
134 tlen = 0; in dvrecv()
135 while ((len = read(d, buf + tlen, PSIZE 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()
258 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; in dvsend() local
320 tlen = 0; in dvsend()
321 while (tlen < DSIZE * TNBUF) { 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()
269 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may have grown */ 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()
318 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may in AliasHandleFtpIn()
320 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') in AliasHandleFtpIn()
[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()
295 ms->c.li[m->cont_level - 1].off = CAST(int, offs + tlen); 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()
[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/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/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/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()
356 /* tlen has already incremented */ in set_sockaddr()
390 tlen = 0; in policy_parse()
408 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen); in policy_parse()
[all...]
/freebsd/sys/kern/
H A Duipc_mbuf2.c96 int hlen, tlen, olen; in m_pulldown() local
189 tlen = len - hlen; in m_pulldown()
207 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
209 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
210 n->m_len += tlen; in m_pulldown()
211 m_adj(n->m_next, tlen); in m_pulldown()
215 && writable && n->m_next->m_len >= tlen) { in m_pulldown()
242 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
243 o->m_len += tlen; in m_pulldown()
244 m_adj(n->m_next, tlen); in m_pulldown()

1234567