Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c66 u16 tot_len; in handle_dhcp() local
73 tot_len = ntohs(b->iph.tot_len); in handle_dhcp()
74 if (tot_len > (unsigned int) (len - ETH_HLEN)) in handle_dhcp()
81 end = (const u8 *) b + tot_len; in handle_dhcp()
/external/mmc-utils/3rdparty/hmac_sha/
Dsha2.c355 ctx->tot_len = 0; in sha256_init()
389 ctx->tot_len += (block_nb + 1) << 6; in sha256_update()
405 len_b = (ctx->tot_len + ctx->len) << 3; in sha256_final()
552 ctx->tot_len = 0; in sha512_init()
586 ctx->tot_len += (block_nb + 1) << 7; in sha512_update()
602 len_b = (ctx->tot_len + ctx->len) << 3; in sha512_final()
654 ctx->tot_len = 0; in sha384_init()
688 ctx->tot_len += (block_nb + 1) << 7; in sha384_update()
704 len_b = (ctx->tot_len + ctx->len) << 3; in sha384_final()
754 ctx->tot_len = 0; in sha224_init()
[all …]
Dsha2.h63 unsigned int tot_len; member
70 unsigned int tot_len; member
/external/vboot_reference/firmware/lib/cryptolib/include/
Dsha.h41 uint32_t tot_len; member
49 uint32_t tot_len; member
/external/android-clat/
Dipv6.c176 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos)); in ipv6_packet()
Dclatd_microbenchmark.c98 .tot_len = htons(len + sizeof(ip) + sizeof(udp)), in send_packet()
Ddump.c50 printf("tot_len = %x\n",ntohs(header->tot_len)); in dump_ip()
Dclatd_test.cpp212 EXPECT_EQ(len, ntohs(ip->tot_len)) << msg << ": Incorrect IPv4 length\n"; in check_packet()
359 ip->tot_len = htons(total_length); in reassemble_packet()
Dtranslate.c131 ip->tot_len = htons(sizeof(struct iphdr) + payload_len); in fill_ip_header()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c799 u16 tot_len = 0; in eap_pwd_process() local
883 tot_len = WPA_GET_BE16(pos); in eap_pwd_process()
885 "total length = %d", tot_len); in eap_pwd_process()
886 if (tot_len > 15000) in eap_pwd_process()
894 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
989 tot_len = len; in eap_pwd_process()
995 "length = %d", tot_len); in eap_pwd_process()
1006 wpabuf_put_be16(resp, tot_len); in eap_pwd_process()
/external/vboot_reference/firmware/lib/cryptolib/
Dsha256.c125 ctx->tot_len = 0; in SHA256_init()
274 ctx->tot_len += (block_nb + 1) << 6; in SHA256_update()
288 len_b = (ctx->tot_len + ctx->len) << 3; in SHA256_final()
Dsha512.c168 ctx->tot_len = 0; in SHA512_init()
296 ctx->tot_len += (block_nb + 1) << 7; in SHA512_update()
312 len_b = (ctx->tot_len + ctx->len) << 3; in SHA512_final()
/external/kernel-headers/original/uapi/linux/
Dip.h96 __be16 tot_len; member
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c917 u16 tot_len; in eap_pwd_process() local
955 tot_len = WPA_GET_BE16(pos); in eap_pwd_process()
957 "length = %d", tot_len); in eap_pwd_process()
958 if (tot_len > 15000) in eap_pwd_process()
965 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
/external/toybox/toys/pending/
Ddhcp.c663 if (bytes < ntohs(packet.iph.tot_len)) { in read_raw()
668 bytes = ntohs(packet.iph.tot_len); in read_raw()
685 packet.iph.tot_len = packet.udph.len; in read_raw()
750 packet.iph.tot_len = packet.udph.len; in send_raw()
752 packet.iph.tot_len = htons(sizeof(dhcp_raw_t) - padding); in send_raw()
Ddhcpd.c939 packet.iph.tot_len = packet.udph.len; in send_packet()
941 packet.iph.tot_len = htons(sizeof(dhcp_raw_t) - padding); in send_packet()
/external/blktrace/
Dblktrace.c1300 unsigned long tot_len; in tb_combine() local
1302 tot_len = prev->len + tbp->len; in tb_combine()
1303 if (tot_len > buf_size) { in tb_combine()
1311 prev = realloc(prev->buf, sizeof(*prev) + tot_len); in tb_combine()
1316 prev->len = tot_len; in tb_combine()
/external/iputils/Modules/
Dpg3.c281 iph->tot_len = htons(iplen); in fill_packet()
/external/iputils/
Dping.c1296 ip->version, ip->ihl, ip->tos, ip->tot_len, ip->id); in pr_iph()
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c1608 ntohs(ip.tot_len) != HWSIM_IP_LEN) in hostapd_data_test_rx()
1705 ip->tot_len = htons(HWSIM_IP_LEN); in hostapd_ctrl_iface_data_test_tx()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface.c7783 ntohs(ip.tot_len) != HWSIM_IP_LEN) in wpas_data_test_rx()
7879 ip->tot_len = htons(HWSIM_IP_LEN); in wpas_ctrl_iface_data_test_tx()