Searched refs:hlen (Results 1 - 10 of 10) sorted by relevance
/haiku/src/libs/compat/freebsd_network/ |
H A D | fbsd_uipc_mbuf2.c | 102 int hlen, tlen, olen; local 190 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>, 192 * note that hlen + tlen == len, and tlen > 0. 194 hlen = n->m_len - off; 195 tlen = len - hlen; 204 if (hlen + olen < len) { 220 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen 222 n->m_next->m_data -= hlen; 223 n->m_next->m_len += hlen; 224 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); [all...] |
/haiku/src/bin/network/ping/ |
H A D | ping.c | 1139 int8_t hlen; local 1157 hlen = (l & 0x0f) << 2; 1160 if (hlen < (int8_t) sizeof(struct ip)) { 1162 warn("IHL too short (%d bytes) from %s", hlen, 1171 if (cc < hlen + ICMP_MINLEN) { 1178 icmp_data_raw_len = cc - (hlen + offsetof(struct icmp, icmp_data)); 1179 icmp_data_raw = buf + hlen + offsetof(struct icmp, icmp_data); 1182 cc -= hlen; 1183 memcpy(&icp, buf + hlen, MIN((ssize_t)sizeof(icp), cc)); 1268 cp = (u_char*)(buf + hlen 1590 int hlen; local [all...] |
H A D | ping6.c | 2606 int hlen; local 2613 hlen = sizeof(*ip6); 2616 cp += hlen; 2625 hlen = (((struct ip6_hbh *)cp)->ip6h_len+1) << 3; 2630 hlen = (((struct ip6_dest *)cp)->ip6d_len+1) << 3; 2635 hlen = sizeof(struct ip6_frag); 2640 hlen = (((struct ip6_rthdr *)cp)->ip6r_len+1) << 3; 2647 hlen = (ah.ah_len+2) << 2; 2673 if ((cp += hlen) >= end)
|
/haiku/src/bin/network/traceroute/ |
H A D | traceroute.c | 1395 register int hlen; local 1400 hlen = ip->ip_hl << 2; 1401 if (cc < hlen + ICMP_MINLEN) { 1407 cc -= hlen; 1408 icp = (struct icmp *)(buf + hlen); 1430 hlen = hip->ip_hl << 2; 1431 inner = (u_char *)((u_char *)hip + hlen); 1432 if (hlen + 16 <= cc 1694 register int hlen; local 1698 hlen [all...] |
/haiku/src/add-ons/kernel/bus_managers/firewire/ |
H A D | fwohci.cpp | 2650 int slen, hlen; local 2680 hlen = tinfo[fp0->mode.common.tcode].hdr_len; 2681 if (hlen > len) { 2684 return(-hlen); 2690 return(hlen); 2747 int len, plen, hlen, pcnt, offset; local 2813 hlen = fwohci_arcv_swap(&pktbuf, sizeof(pktbuf)); 2814 if (hlen <= 0) { 2815 printf("hlen should be positive."); 2832 hlen [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/ |
H A D | if_fxp.c | 1806 int32_t hlen, len, pktlen, temp32; local 1835 hlen = ip->ip_hl << 2; 1837 if (hlen < sizeof(struct ip)) 1839 if (ntohs(ip->ip_len) < hlen) 1848 if (pktlen < (hlen + sizeof(struct tcphdr))) 1852 if (pktlen < (hlen + sizeof(struct udphdr))) 1854 uh = (struct udphdr *)((caddr_t)ip + hlen); 1864 len = hlen - sizeof(struct ip);
|
/haiku/src/add-ons/kernel/drivers/network/ether/marvell_yukon/dev/msk/ |
H A D | if_msk.c | 3107 int32_t hlen, len, pktlen, temp32; local 3150 hlen = ip->ip_hl << 2; 3152 if (hlen < sizeof(struct ip)) 3154 if (ntohs(ip->ip_len) < hlen) 3163 if (pktlen < (hlen + sizeof(struct tcphdr))) 3167 if (pktlen < (hlen + sizeof(struct udphdr))) 3169 uh = (struct udphdr *)((caddr_t)ip + hlen); 3178 len = hlen - sizeof(struct ip);
|
/haiku/src/add-ons/kernel/drivers/network/ether/syskonnect/dev/sk/ |
H A D | if_sk.c | 2687 int32_t hlen, len, pktlen; local 2699 hlen = ip->ip_hl << 2; 2701 if (hlen < sizeof(struct ip)) 2703 if (ntohs(ip->ip_len) < hlen) 2712 len = hlen - sizeof(struct ip);
|
/haiku/src/libs/compat/freebsd_network/compat/net/ |
H A D | if_var.h | 764 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
|
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom570x/dev/bge/ |
H A D | if_bge.c | 5109 uint16_t hlen; local 5150 hlen = ((ip->ip_hl << 2) + (tcp->th_off << 2)) >> 2; 5160 *mss |= ((hlen & 0x3) << 14); 5161 *flags |= ((hlen & 0xF8) << 7) | ((hlen & 0x4) << 2); 5169 *mss |= (hlen << 11);
|
Completed in 189 milliseconds