Searched refs:tot_len (Results 1 - 25 of 64) sorted by relevance

123

/external/avb/libavb/
H A Davb_sha.h53 uint32_t tot_len; member in struct:__anon520
62 uint32_t tot_len; member in struct:__anon521
/external/syslinux/core/lwip/src/core/
H A Dpbuf.c23 * The last pbuf of a packet has a ->tot_len field that equals the
29 * loop end condition (tot_len == p->len), NOT (next == NULL).
231 p->tot_len = length;
265 q->tot_len = (u16_t)rem_len;
292 p->len = p->tot_len = length;
313 p->len = p->tot_len = length;
384 p->pbuf.len = p->pbuf.tot_len = length;
401 * @note If the pbuf is ROM/REF, only the ->tot_len and ->len fields are adjusted.
420 if (new_len >= p->tot_len) {
425 /* the pbuf chain grows by (new_len - p->tot_len) byte
[all...]
H A Dudp.c102 if (p->tot_len < (IPH_HL(iphdr) * 4 + UDP_HLEN) || pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4))) {
105 ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len));
118 LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len));
229 chklen = p->tot_len;
241 IP_PROTO_UDPLITE, p->tot_len, chklen) != 0) {
257 IP_PROTO_UDP, p->tot_len) != 0) {
308 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM);
523 if (p->tot_len != 0) {
574 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: sending datagram of length %"U16_F"\n", q->tot_len));
580 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len));
[all...]
H A Dtcp_out.c169 seg->len = p->tot_len - optlen;
259 p->len = p->tot_len = length;
623 /* Bump tot_len of whole chain, len of tail */
625 p->tot_len += oversize_used;
646 last_unsent->len += concat_p->tot_len;
870 IP_PROTO_TCP, p->tot_len);
1110 seg->p->tot_len -= len;
1122 IP_PROTO_TCP, seg->p->tot_len);
1126 seg->p->tot_len == (TCPH_HDRLEN(seg->tcphdr) * 4));
1132 IP_PROTO_TCP, seg->p->tot_len, TCPH_HDRLE
[all...]
H A Dnetif.c610 r = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM);
658 snmp_add_ifoutoctets(stats_if, p->tot_len);
703 while (in_end->len != in_end->tot_len) {
704 LWIP_ASSERT("bogus pbuf: len != tot_len but next == NULL!", in_end->next != NULL);
723 snmp_add_ifinoctets(stats_if, in->tot_len);
H A Dtcp_in.c116 if (pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4))) || (p->tot_len < sizeof(struct tcp_hdr))) {
118 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: short packet (%"U16_F" bytes) discarded\n", p->tot_len));
139 IP_PROTO_TCP, p->tot_len) != 0) {
142 IP_PROTO_TCP, p->tot_len)));
175 tcplen = p->tot_len + ((flags & (TCP_FIN | TCP_SYN)) ? 1 : 0);
293 inseg.len = p->tot_len;
1148 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off));
1149 new_tot_len = (u16_t)(inseg.p->tot_len - off);
1154 inseg.p->tot_len -= p->len; */
1155 p->tot_len
[all...]
/external/syslinux/core/lwip/src/core/snmp/
H A Dmsg_out.c117 u16_t tot_len; local
121 tot_len = snmp_varbind_list_sum(&m_stat->outvb);
122 tot_len = snmp_resp_header_sum(m_stat, tot_len);
125 p = pbuf_alloc(PBUF_TRANSPORT, tot_len, PBUF_POOL);
134 tot_len = snmp_varbind_list_sum(&emptyvb);
135 tot_len = snmp_resp_header_sum(m_stat, tot_len);
137 p = pbuf_alloc(PBUF_TRANSPORT, tot_len, PBUF_POOL);
226 u16_t i,tot_len; local
321 u16_t tot_len; local
368 u16_t tot_len; local
426 u16_t tot_len; local
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Ddhcp_snoop.c42 u16 tot_len; local
49 tot_len = ntohs(b->iph.tot_len);
50 if (tot_len > (unsigned int) (len - ETH_HLEN))
57 end = (const u8 *) b + tot_len;
H A Dfils_hlp.c264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
509 u16 tot_len; local
519 tot_len = ntohs(iph->tot_len);
520 if (tot_len > len)
/external/wpa_supplicant_8/src/ap/
H A Ddhcp_snoop.c42 u16 tot_len; local
49 tot_len = ntohs(b->iph.tot_len);
50 if (tot_len > (unsigned int) (len - ETH_HLEN))
57 end = (const u8 *) b + tot_len;
H A Dfils_hlp.c264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
509 u16 tot_len; local
519 tot_len = ntohs(iph->tot_len);
520 if (tot_len > len)
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Ddhcp_snoop.c42 u16 tot_len; local
49 tot_len = ntohs(b->iph.tot_len);
50 if (tot_len > (unsigned int) (len - ETH_HLEN))
57 end = (const u8 *) b + tot_len;
H A Dfils_hlp.c264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
509 u16 tot_len; local
519 tot_len = ntohs(iph->tot_len);
520 if (tot_len > len)
/external/mmc-utils/3rdparty/hmac_sha/
H A Dsha2.h63 unsigned int tot_len; member in struct:__anon15376
70 unsigned int tot_len; member in struct:__anon15377
H A Dsha2.c355 ctx->tot_len = 0;
389 ctx->tot_len += (block_nb + 1) << 6;
405 len_b = (ctx->tot_len + ctx->len) << 3;
552 ctx->tot_len = 0;
586 ctx->tot_len += (block_nb + 1) << 7;
602 len_b = (ctx->tot_len + ctx->len) << 3;
654 ctx->tot_len = 0;
688 ctx->tot_len += (block_nb + 1) << 7;
704 len_b = (ctx->tot_len + ctx->len) << 3;
754 ctx->tot_len
[all...]
/external/vboot_reference/firmware/lib/cryptolib/include/
H A Dsha.h41 uint32_t tot_len; member in struct:__anon23893
49 uint32_t tot_len; member in struct:__anon23894
/external/toolchain-utils/deprecated/
H A Dcompare_benchmarks.py82 tot_len = len(hdr)
83 PrintDash(tot_len * 15)
90 PrintDash(tot_len * 15)
/external/syslinux/core/lwip/src/core/ipv4/
H A Dicmp.c93 if (pbuf_header(p, -hlen) || (p->tot_len < sizeof(u16_t)*2)) {
94 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len));
133 if (p->tot_len < sizeof(struct icmp_echo_hdr)) {
156 r = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM);
H A Dip.c275 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len)) {
281 if (iphdr_len > p->tot_len) {
284 iphdr_len, p->tot_len));
439 LWIP_DEBUGF(IP_DEBUG, ("IP packet is a fragment (id=0x%04"X16_F" tot_len=%"U16_F" len=%"U16_F" MF=%"U16_F" offset=%"U16_F"), calling ip_reass()\n",
440 ntohs(IPH_ID(iphdr)), p->tot_len, ntohs(IPH_LEN(iphdr)), !!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), (ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)*8));
481 LWIP_DEBUGF(IP_DEBUG, ("ip_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
664 IPH_LEN_SET(iphdr, htons(p->tot_len));
721 if (netif->mtu && (p->tot_len > netif->mtu)) {
/external/android-clat/
H A Dipv6.c176 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos));
/external/syslinux/core/lwip/src/include/lwip/
H A Dnetbuf.h83 #define netbuf_len(buf) ((buf)->p->tot_len)
H A Dpbuf.h85 * p->tot_len == p->len + (p->next? p->next->tot_len: 0)
87 u16_t tot_len; member in struct:pbuf
/external/kernel-headers/original/uapi/linux/
H A Dip.h96 __be16 tot_len; member in struct:iphdr
/external/libnl/include/linux-private/linux/
H A Dip.h96 __be16 tot_len; member in struct:iphdr
/external/syslinux/core/lwip/src/netif/ppp/
H A Dppp_oe.c340 if(pb->tot_len == pb->len) {
341 pb->tot_len = pb->len = (u16_t)off + plen; /* ignore trailing garbage */
658 pb->tot_len));
701 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len);
918 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len);
958 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len);
997 LWIP_ASSERT("pb->tot_len
[all...]

Completed in 616 milliseconds

123