Searched defs:iphlen (Results 1 - 5 of 5) sorted by relevance
/vbox/src/VBox/Devices/Network/slirp/dnsproxy/ |
H A D | dnsproxy.c | 142 int iphlen; local 159 iphlen = sizeof(struct ip); 177 dnsproxy_query(pData, so, m, iphlen); 200 * iphlen - len of ip header 209 dnsproxy_query(PNATState pData, struct socket *so, struct mbuf *m, int iphlen) 327 udp = (struct udphdr *)(m->m_data + iphlen); 333 /* iphlen equals to lenght of ip header */ 334 Assert(iphlen == sizeof(struct ip)); 335 iphlen += sizeof (struct udphdr); 337 byte = m->m_len - iphlen; [all...] |
/vbox/src/VBox/Devices/Network/slirp/ |
H A D | tcp_input.c | 290 tcp_input(PNATState pData, register struct mbuf *m, int iphlen, struct socket *inso) argument 310 LogFlow(("tcp_input: m = %8lx, iphlen = %2d, inso = %R[natsock]\n", 311 (long)m, iphlen, inso)); 361 /* ip_input() subtracts iphlen from ip::ip_len */ 362 AssertStmt((ip->ip_len + iphlen == m_length(m, NULL)), goto drop); 378 ohdrlen = iphlen + 8; 381 save_ip->ip_len += iphlen; /* undo change by ip_input() */ 389 if (iphlen > sizeof(struct ip)) 392 iphlen = sizeof(struct ip);
|
H A D | udp.c | 87 udp_input(PNATState pData, register struct mbuf *m, int iphlen) argument 97 LogFlowFunc(("ENTER: m = %p, iphlen = %d\n", m, iphlen)); 99 Log2(("%RTnaipv4 iphlen = %d\n", ip->ip_dst, iphlen)); 109 if (iphlen > sizeof(struct ip)) 112 iphlen = sizeof(struct ip); 119 uh = (struct udphdr *)((caddr_t)ip + iphlen); 126 Assert((ip->ip_len + iphlen == m_length(m, NULL))); 145 save_ip.ip_len+= iphlen; /* tcp_inpu [all...] |
/vbox/src/VBox/NetworkServices/NAT/ |
H A D | pxping_win.c | 167 u16_t iphlen; local 180 iphlen = ip_current_header_tot_len(); 181 if (RT_UNLIKELY(iphlen != IP_HLEN)) { /* we don't do options */ 196 status = pbuf_header(p, iphlen); /* back to IP header */ 272 status = pbuf_header(p, (u16_t)(sizeof(*icmph) + iphlen));
|
H A D | pxping.c | 456 u16_t iphlen; local 459 iphlen = ip_current_header_tot_len(); 460 if (iphlen != IP_HLEN) { /* we don't do options */ 485 status = pbuf_header(p, iphlen); /* back to IP header */ 518 status = pbuf_header(p, iphlen); /* back to IP header */ 525 memcpy(&iph_orig, iph, iphlen); 620 memcpy(iph, &iph_orig, iphlen); 625 status = pbuf_header(p, iphlen); /* back to IP header */ 677 u16_t iphlen; local 682 iphlen [all...] |
Completed in 81 milliseconds