Searched refs:hlen (Results 1 - 25 of 43) sorted by relevance

12

/vbox/src/VBox/Devices/Network/slirp/
H A Dip_input.c95 int hlen = 0; local
135 hlen = ip->ip_hl << 2;
136 if ( hlen < sizeof(struct ip)
137 || hlen > m->m_len)
145 * ip->ip_sum = cksum(m, hlen);
148 if (cksum(m, hlen))
158 if (ip->ip_len < hlen)
222 hlen = ip->ip_hl << 2;
225 ip->ip_len -= hlen;
234 tcp_input(pData, m, hlen, (struc
266 int i, hlen, next; local
[all...]
H A Dip_icmp.c361 icmp_input(PNATState pData, struct mbuf *m, int hlen) argument
386 m->m_len -= hlen;
387 m->m_data += hlen;
398 m->m_len += hlen;
399 m->m_data -= hlen;
408 ip->ip_len += hlen; /* since ip_input subtracts this */
415 m_copyback(pData, m, hlen + RT_OFFSETOF(struct icmp, icmp_type),
425 icmpwin_ping(pData, m, hlen);
458 m_copydata(m, hlen, icmplen, icp_buf);
462 icp = (struct icmp *)(mtod(m, char *) + hlen);
689 int hlen = ip->ip_hl << 2; local
[all...]
H A Dip_output.c122 register int hlen = sizeof(struct ip); local
143 hlen = len;
154 ip->ip_hl = hlen >> 2;
173 ip->ip_sum = cksum(m, hlen);
208 len = (if_mtu - hlen) &~ 7; /* ip databytes per packet */
226 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len)
242 if (hlen > sizeof (struct ip))
H A Dip_icmpwin.c130 icmpwin_ping(PNATState pData, struct mbuf *m, int hlen) argument
145 reqsize = ip->ip_len - hlen - sizeof(struct icmp_echo);
164 m_copydata(m, 0, hlen, (caddr_t)&pong->reqiph);
165 m_copydata(m, hlen, sizeof(struct icmp_echo), (caddr_t)&pong->reqicmph);
H A Dsocket.c1160 int hlen, original_hlen = 0; local
1173 hlen = (ip->ip_hl << 2);
1175 ip->ip_len += hlen;
1177 if (ip->ip_len < hlen + ICMP_MINLEN)
1182 icp = (struct icmp *)((char *)ip + hlen);
1197 if (ip->ip_len < hlen + 8)
1211 if (ip->ip_len < hlen + 2*8 + sizeof(struct ip))
1251 if ( (ip->ip_len - hlen)
1255 (ip->ip_len - hlen), (ip0->ip_len - (ip0->ip_hl << 2))));
1280 m_copyback(pData, m, original_hlen, len - hlen, buf
[all...]
/vbox/src/libs/xpcom18a4/xpcom/typelib/xpt/tests/
H A DPrimitiveTest.c99 PRUint32 hlen, dlen, i; local
115 XPT_GetXDRData(state, XPT_HEADER, &header, &hlen);
117 hlen, header);
118 for (i = 0; i < hlen; i++)
131 whole = malloc(dlen + hlen);
133 fprintf(stderr, "malloc %d failed!\n", dlen + hlen);
138 memcpy(whole, header, hlen);
139 memcpy(whole + hlen, data, dlen);
143 hlen + dlen)));
/vbox/src/VBox/Devices/Network/lwip/src/netif/ppp/
H A Dvj.c146 register u_short hlen = getip_hl(*ip); local
168 th = (struct tcphdr *)&((long *)ip)[hlen];
217 hlen += getth_off(*th);
218 hlen <<= 2;
220 if (hlen > pb->len)
237 oth = (struct tcphdr *)&((long *)&cs->cs_ip)[hlen];
238 deltaS = hlen;
239 hlen += getth_off(*th);
240 hlen <<= 2;
242 if (hlen > p
420 register u_int hlen; local
465 u_int vjlen, hlen, changes; local
[all...]
/vbox/src/VBox/Devices/Network/lwip-new/src/netif/ppp/
H A Dvj.c142 register u_short hlen = IPH_HL(ip); local
166 th = (struct tcp_hdr *)&((long *)ip)[hlen];
216 hlen += TCPH_HDRLEN(th);
217 hlen <<= 2;
219 if (hlen > pb->len) {
237 oth = (struct tcp_hdr *)&((long *)&cs->cs_ip)[hlen];
238 deltaS = hlen;
239 hlen += TCPH_HDRLEN(th);
240 hlen <<= 2;
242 if (hlen > p
429 register u_int hlen; local
472 u_int vjlen, hlen, changes; local
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/usr/
H A Ddhcpmgmt.c42 unsigned int hlen; local
56 hlen = dhcp_chaddr ( netdev, chaddr, NULL );
57 for ( i = 0 ; i < hlen ; i++ )
/vbox/src/VBox/Devices/Network/slirp/bsd/kern/
H A Duipc_mbuf2.c111 int hlen, tlen, olen; local
217 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
219 * note that hlen + tlen == len, and tlen > 0.
221 hlen = n->m_len - off;
222 tlen = len - hlen;
231 if (hlen + olen < len) {
255 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen
257 n->m_next->m_data -= hlen;
258 n->m_next->m_len += hlen;
259 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
[all...]
/vbox/src/VBox/Devices/Network/lwip/src/core/ipv4/
H A Dicmp.c54 u16_t hlen; local
61 hlen = IPH_HL(iphdr) * 4;
62 if (pbuf_header(p, -((s16_t)hlen)) || (p->tot_len < sizeof(u16_t)*2)) {
114 pbuf_header(p, hlen);
/vbox/src/VBox/Devices/Network/lwip-new/src/core/ipv4/
H A Dicmp.c97 s16_t hlen; local
103 hlen = IPH_HL(iphdr) * 4;
164 if (pbuf_header(p, hlen)) {
175 (r->len >= hlen + sizeof(struct icmp_echo_hdr)));
183 if (pbuf_header(r, -hlen)) {
230 if(pbuf_header(p, hlen)) {
/vbox/src/VBox/Devices/Network/lwip-new/src/core/ipv6/
H A Dip6.c423 u16_t hlen; /* the current header length */ local
607 hlen = ip_data.current_ip_header_tot_len = IP6_HLEN;
622 hlen = 8 * (1 + *((u8_t *)p->payload + 1));
623 ip_data.current_ip_header_tot_len += hlen;
626 if (hlen > p->len) {
628 ("IPv6 options header (hlen %"U16_F") does not fit in first pbuf (len %"U16_F"), IPv6 packet dropped.\n",
629 hlen, p->len));
637 pbuf_header(p, -hlen);
645 hlen = 8 * (1 + *((u8_t *)p->payload + 1));
646 ip_data.current_ip_header_tot_len += hlen;
[all...]
/vbox/src/VBox/Devices/Network/slirp/libalias/
H A Dalias_ftp.c255 int hlen, tlen, dlen, pflags; local
262 hlen = (pip->ip_hl + tc->th_off) << 2;
264 dlen = tlen - hlen;
268 sptr += hlen;
643 int slen, hlen, tlen, dlen; local
653 hlen = (pip->ip_hl + tc->th_off) << 2;
655 dlen = tlen - hlen;
734 sptr += hlen;
735 strncpy(sptr, stemp, maxpacketsize - hlen);
751 new_len = htons(hlen
[all...]
H A Dalias_irc.c172 int hlen, tlen, dlen; local
181 hlen = (pip->ip_hl + tc->th_off) << 2;
183 dlen = tlen - hlen;
194 sptr += hlen;
195 maxsize -= hlen; /* We're interested in maximum size of
449 new_len = htons(hlen + iCopy + copyat);
H A Dalias_smedia.c240 int hlen, tlen, dlen; local
254 hlen = (pip->ip_hl + tc->th_off) << 2;
256 dlen = tlen - hlen;
410 new_len = htons(hlen + new_dlen);
482 int hlen, tlen, dlen; local
493 hlen = (pip->ip_hl + tc->th_off) << 2;
495 dlen = tlen - hlen;
498 data += hlen;
H A Dalias_pptp.c440 int hlen, tlen, dlen; local
446 hlen = (pip->ip_hl + tc->th_off) << 2;
448 dlen = tlen - hlen;
H A Dalias_skinny.c305 size_t hlen, tlen, dlen; local
314 hlen = (pip->ip_hl + tc->th_off) << 2;
316 dlen = tlen - hlen;
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dsendzlf.c130 sfd.hlen = HEADER_LEN;
147 sfd.hlen = 0;
156 sfd.hlen = HEADER_LEN;
/vbox/src/VBox/Devices/PC/ipxe/src/net/
H A Dtcp.c561 tcphdr->hlen = ( ( payload - iobuf->data ) << 2 );
674 tcphdr->hlen = ( ( sizeof ( *tcphdr ) / 4 ) << 4 );
1100 size_t hlen; local
1118 hlen = ( ( tcphdr->hlen & TCP_MASK_HLEN ) / 16 ) * 4;
1119 if ( hlen < sizeof ( *tcphdr ) ) {
1121 hlen, sizeof ( *tcphdr ) );
1125 if ( hlen > iob_len ( iobuf ) ) {
1127 hlen, iob_len ( iobuf ) );
1147 ( hlen
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/
H A Dpriometh.c254 PRFileDesc *sd, PRFileDesc *fd, const void *hdr, PRInt32 hlen,
257 return((sd->methods->transmitfile)(sd,fd,hdr,hlen,flags,timeout));
416 if (sfd->hlen) {
418 iov[index].iov_len = sfd->hlen;
442 PR_ASSERT(rv == sfd->hlen + len + ((len == file_bytes) ? sfd->tlen : 0));
457 file_mmap_offset = sfd->file_offset + count - sfd->hlen;
519 buflen = sfd->hlen;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/
H A Drcio.h119 PRSize hlen, RCIO::FileDisposition flags,
H A Drcnetio.h101 PRSize hlen, RCIO::FileDisposition flags,
H A Drcnetio.cpp160 RCIO *source, const void *headers, PRSize hlen,
165 fd, src->fd, headers, hlen, (PRTransmitFileFlags)flags, timeout); }
159 TransmitFile( RCIO *source, const void *headers, PRSize hlen, RCIO::FileDisposition flags, const RCInterval& timeout) argument
/vbox/src/VBox/Devices/Network/lwip/src/include/lwip/
H A Ddhcp.h72 PACK_STRUCT_FIELD(u8_t hlen);

Completed in 61 milliseconds

12