Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 21 of 21) sorted by relevance

/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dvj.c166 u16_t hlen; in vj_compress_tcp() local
197 hlen <<= 2; in vj_compress_tcp()
198 if (np->len < hlen) { in vj_compress_tcp()
414 hlen -= deltaS + 4; in vj_compress_tcp()
423 hlen -= deltaS + 3; in vj_compress_tcp()
466 u32_t hlen; in vj_uncompress_uncomp() local
471 hlen = IPH_HL(ip) << 2; in vj_uncompress_uncomp()
474 || (hlen += TCPH_HDRLEN(((struct tcp_hdr *)&((char *)ip)[hlen])) << 2) in vj_uncompress_uncomp()
476 || hlen > MAX_HDR) { in vj_uncompress_uncomp()
487 cs->cs_hlen = (u16_t)hlen; in vj_uncompress_uncomp()
[all …]
A Dpppol2tp.c344 u16_t hflags, hlen, len=0, tunnel_id=0, session_id=0, ns=0, nr=0, offset=0; in pppol2tp_input() local
392 hlen = sizeof(hflags) + sizeof(tunnel_id) + sizeof(session_id); in pppol2tp_input()
394 hlen += sizeof(len); in pppol2tp_input()
397 hlen += sizeof(ns) + sizeof(nr); in pppol2tp_input()
400 hlen += sizeof(offset); in pppol2tp_input()
402 if (p->len < hlen) { in pppol2tp_input()
408 if (p->len < len || len < hlen) { in pppol2tp_input()
424 hlen += offset; in pppol2tp_input()
425 if (p->len < hlen) { in pppol2tp_input()
434 if (pbuf_header(p, -(s16_t)hlen) != 0) { in pppol2tp_input()
A Dipcp.c2388 int hlen; local
2398 hlen = get_iphl(pkt) * 4;
2399 if (len < hlen + TCP_HDRLEN)
2401 tcp = pkt + hlen;
2402 if ((get_tcpflags(tcp) & TH_FIN) != 0 && len == hlen + get_tcpoff(tcp) * 4)
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/
A Dicmp.c84 s16_t hlen; in icmp_input() local
91 hlen = IPH_HL(iphdr_in) * 4; in icmp_input()
92 if (hlen < IP_HLEN) { in icmp_input()
151 if (pbuf_header(p, (hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN))) { in icmp_input()
157 r = pbuf_alloc(PBUF_LINK, p->tot_len + hlen, PBUF_RAM); in icmp_input()
162 if (r->len < hlen + sizeof(struct icmp_echo_hdr)) { in icmp_input()
168 MEMCPY(r->payload, iphdr_in, hlen); in icmp_input()
170 if (pbuf_header(r, -hlen)) { in icmp_input()
187 if (pbuf_header(p, -(s16_t)(hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN))) { in icmp_input()
197 if (pbuf_header(p, hlen)) { in icmp_input()
[all …]
A Ddhcp.c1867 dhcp->msg_out->hlen = netif->hwaddr_len; in dhcp_create_msg()
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv6/
A Dip6.c594 if (hlen > p->len) { in ip6_input()
597 hlen, p->len)); in ip6_input()
605 pbuf_header(p, -(s16_t)hlen); in ip6_input()
617 if (hlen > p->len) { in ip6_input()
620 hlen, p->len)); in ip6_input()
628 pbuf_header(p, -(s16_t)hlen); in ip6_input()
640 if (hlen > p->len) { in ip6_input()
643 hlen, p->len)); in ip6_input()
665 hlen = 8; in ip6_input()
669 if (hlen > p->len) { in ip6_input()
[all …]
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Decdsa.h285 const unsigned char *hash, size_t hlen,
331 const unsigned char *hash, size_t hlen,
388 const unsigned char *hash, size_t hlen,
423 const unsigned char *hash, size_t hlen,
458 const unsigned char *hash, size_t hlen,
/AliOS-Things-master/components/mbedtls/library/
A Drsa.c1155 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1166 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt()
1171 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt()
1181 if( ( ret = mgf_mask( output + hlen + 1, olen - hlen - 1, output + 1, hlen, in mbedtls_rsa_rsaes_oaep_encrypt()
1186 if( ( ret = mgf_mask( output + 1, hlen, output + hlen + 1, olen - hlen - 1, in mbedtls_rsa_rsaes_oaep_encrypt()
1382 if( ( ret = mgf_mask( buf + 1, hlen, buf + hlen + 1, ilen - hlen - 1, in mbedtls_rsa_rsaes_oaep_decrypt()
1385 ( ret = mgf_mask( buf + hlen + 1, ilen - hlen - 1, buf + 1, hlen, in mbedtls_rsa_rsaes_oaep_decrypt()
1813 else if( olen >= hlen + hlen + 2 ) in mbedtls_rsa_rsassa_pss_sign()
1814 slen = hlen; in mbedtls_rsa_rsassa_pss_sign()
1859 p += hlen; in mbedtls_rsa_rsassa_pss_sign()
[all …]
A Dpkcs12.c262 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local
279 hlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs12_derivation()
281 if( hlen <= 32 ) in mbedtls_pkcs12_derivation()
313 if( ( ret = mbedtls_md( md_info, hash_output, hlen, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation()
317 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation()
327 pkcs12_fill_buffer( hash_block, v, hash_output, hlen ); in mbedtls_pkcs12_derivation()
A Decdsa.c642 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature_restartable() argument
663 hash, hlen, md_alg, rs_ctx ) ); in mbedtls_ecdsa_write_signature_restartable()
669 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature_restartable()
672 hash, hlen, f_rng, p_rng, rs_ctx ) ); in mbedtls_ecdsa_write_signature_restartable()
690 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature() argument
706 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature_det() argument
723 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_read_signature() argument
730 ctx, hash, hlen, sig, slen, NULL ) ); in mbedtls_ecdsa_read_signature()
737 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_read_signature_restartable() argument
774 if( ( ret = mbedtls_ecdsa_verify( &ctx->grp, hash, hlen, in mbedtls_ecdsa_read_signature_restartable()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Dpkt_print.c109 u8_t hlen; member
291 ip4_ptr->hlen = 4*(ptr[0] & 0x0F); in lwip_pkt_print()
292 ip4_hlen = ip4_ptr->hlen; in lwip_pkt_print()
357 tcp_ptr->dlen = (u16_t)(ip4_ptr->len - ip4_ptr->hlen - (ptr[ip4_hlen+12]>>2)); in lwip_pkt_print()
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/prot/
A Ddhcp.h69 PACK_STRUCT_FLD_8(u8_t hlen);
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/prot/
A Ddhcp.h69 PACK_STRUCT_FLD_8(u8_t hlen);
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/apps/
A Ddhcps.h79 uint8_t hlen; /* Hardware address length */ member
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/network/dhcp/
A Ddhcps.h81 uint8_t hlen; /* Hardware address length */ member
A Ddhcps.c358 dhcp_message_repository->hlen = DHCP_MESSAGE_HLEN; in dhcps_initialize_message()
/AliOS-Things-master/components/py_engine/engine/py/
A Dobjstr.h76 const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int d…
A Dobjstr.c279 const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int d… in find_subbytes() argument
280 if (hlen >= nlen) { in find_subbytes()
284 str_index_end = hlen - nlen; in find_subbytes()
286 str_index = hlen - nlen; in find_subbytes()
/AliOS-Things-master/components/py_engine/engine/shared/netutils/
A Ddhcpserver.c77 uint8_t hlen; // hardware address length member
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/
A Dpngwutil.c1813 size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1818 hlen = strlen(height); in png_write_sCAL_s()
1819 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1829 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/dhcpd/
A Ddhcps.c394 dhcp_message_repository->hlen = DHCP_MESSAGE_HLEN; in dhcps_initialize_message()

Completed in 50 milliseconds