/vbox/src/VBox/Devices/PC/ipxe/src/usr/ |
H A D | dhcpmgmt.c | 42 unsigned int hlen; local 56 hlen = dhcp_chaddr ( netdev, chaddr, NULL ); 57 for ( i = 0 ; i < hlen ; i++ )
|
/vbox/src/VBox/Devices/Network/lwip/src/core/ipv4/ |
H A D | icmp.c | 54 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 D | icmp.c | 97 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/slirp/ |
H A D | ip_input.c | 95 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 D | ip_output.c | 122 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 D | ip_icmp.c | 361 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 D | ip_icmpwin.c | 130 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 D | socket.c | 1160 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/VBox/Devices/Network/lwip/src/netif/ppp/ |
H A D | vj.c | 146 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/core/ipv6/ |
H A D | ip6.c | 423 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/lwip-new/src/netif/ppp/ |
H A D | vj.c | 142 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...] |
H A D | ipcp.c | 1386 int hlen; local 1399 hlen = get_iphl(pkt) * 4; 1400 if (len < hlen + TCP_HDRLEN) { 1403 tcp = pkt + hlen; 1404 if ((get_tcpflags(tcp) & TH_FIN) != 0 && len == hlen + get_tcpoff(tcp) * 4) {
|
/vbox/src/VBox/Devices/Network/slirp/bsd/kern/ |
H A D | uipc_mbuf2.c | 111 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/slirp/libalias/ |
H A D | alias_irc.c | 172 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 D | alias_ftp.c | 255 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 D | alias_pptp.c | 440 int hlen, tlen, dlen; local 446 hlen = (pip->ip_hl + tc->th_off) << 2; 448 dlen = tlen - hlen;
|
H A D | alias_skinny.c | 305 size_t hlen, tlen, dlen; local 314 hlen = (pip->ip_hl + tc->th_off) << 2; 316 dlen = tlen - hlen;
|
H A D | alias_smedia.c | 240 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 D | alias_proxy.c | 447 int hlen; local 450 hlen = (pip->ip_hl + tc->th_off) << 2; 451 dlen = ntohs(pip->ip_len) - hlen; 459 p += hlen;
|
/vbox/src/libs/xpcom18a4/xpcom/typelib/xpt/tests/ |
H A D | PrimitiveTest.c | 99 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/libs/xpcom18a4/nsprpub/pr/src/cplus/ |
H A D | rcnetio.cpp | 160 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/PC/ipxe/src/include/ipxe/ |
H A D | tcp.h | 24 uint8_t hlen; /* Header length (4), Reserved (4) */ member in struct:tcp_header
|
/vbox/src/VBox/Devices/PC/ipxe/src/net/ |
H A D | tcp.c | 561 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 D | prlayer.c | 370 PRFileDesc *sd, PRFileDesc *fd, const void *headers, PRInt32 hlen, 377 sd->lower, fd, headers, hlen, flags, t); 369 pl_DefTransmitfile( PRFileDesc *sd, PRFileDesc *fd, const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime t) argument
|
H A D | prsocket.c | 1051 const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, 1060 sfd.hlen = hlen; 1050 SocketTransmitFile(PRFileDesc *sd, PRFileDesc *fd, const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime timeout) argument
|