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

12

/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-mobility.c175 int mhlen, hlen, type; local
207 hlen = IP6M_MINLEN;
213 hlen = IP6M_MINLEN;
215 TCHECK2(*mh, hlen + 8);
218 EXTRACT_32BITS(&bp[hlen]),
219 EXTRACT_32BITS(&bp[hlen + 4]));
221 hlen += 8;
229 hlen = IP6M_MINLEN;
231 TCHECK2(*mh, hlen + 8);
234 EXTRACT_32BITS(&bp[hlen]),
[all...]
H A Dprint-sl.c117 u_int hlen; local
145 hlen = IP_HL(ip);
146 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]);
147 lastlen[dir][lastconn] = length - (hlen << 2);
195 register u_int flags, hlen; local
231 * 'hlen' is the length of the uncompressed TCP/IP header (in words).
233 * 'length - hlen' is the amount of data in the packet.
235 hlen = IP_HL(ip);
236 hlen
[all...]
H A Dprint-tcp.c197 register u_int hlen; local
225 hlen = TH_OFF(tp) * 4;
233 if (!qflag && hlen >= sizeof(*tp) && hlen <= length) {
236 nfsreq_print((u_char *)tp + hlen + 4, length - hlen,
242 nfsreply_print((u_char *)tp + hlen + 4, length - hlen,
274 if (hlen < sizeof(*tp)) {
276 length - hlen, hle
[all...]
H A Dprint-ip.c561 u_int hlen; local
582 hlen = IP_HL(ipds->ip) * 4;
583 if (hlen < sizeof (struct ip)) {
584 (void)printf("bad-hlen %u", hlen);
592 if (ipds->len < hlen) {
615 ipds->len -= hlen;
653 if ((hlen - sizeof(struct ip)) > 0) {
655 ip_optprint((u_char *)(ipds->ip + 1), hlen - sizeof(struct ip));
659 if ((u_char *)ipds->ip + hlen <
[all...]
H A Dprint-icmp.c322 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; local
357 hlen = IP_HL(oip) * 4;
358 ouh = (struct udphdr *)(((u_char *)oip) + hlen);
568 hlen = plen - ICMP_EXTD_MINLEN;
572 hlen);
574 hlen -= 4; /* subtract common header size */
577 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) {
592 hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */
622 if (hlen < obj_tlen)
624 hlen
[all...]
H A Dprint-dccp.c225 u_int hlen; local
251 hlen = dh->dccph_doff * 4;
268 (void)printf(" %d", len - hlen);
269 if (hlen > len) {
271 hlen, len);
382 if (hlen > dccp_basic_hdr_len(dh) + extlen){
388 hlen -= dccp_basic_hdr_len(dh) + extlen;
393 if (hlen <= optlen) break;
394 hlen -= optlen;
H A Dprint-icmp6.c531 int hlen; local
540 hlen = sizeof(struct ip6_hdr);
543 bp += hlen;
564 hlen = (hbh->ip6h_len + 1) << 3;
575 hlen = sizeof(struct ip6_frag);
583 hlen = (ah->ah_len + 2) << 2;
H A Dprint-bgp.c2027 u_int16_t hlen; local
2063 hlen = ntohs(bgp.bgp_len);
2064 if (hlen < BGP_SIZE) {
2065 printf("\n[|BGP Bogus header length %u < %u]", hlen,
2070 if (TTEST2(p[0], hlen)) {
2071 if (!bgp_header_print(p, hlen))
2073 p += hlen;
/haiku-fatelf/src/libs/compat/freebsd_network/
H A Dfbsd_mbuf2.c97 int hlen, tlen, olen; local
187 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
189 * note that hlen + tlen == len, and tlen > 0.
191 hlen = n->m_len - off;
192 tlen = len - hlen;
201 if (hlen + olen < len) {
217 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen
219 n->m_next->m_data -= hlen;
220 n->m_next->m_len += hlen;
221 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
[all...]
/haiku-fatelf/src/libs/util/
H A Dlogin_class.c132 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) argument
151 - dollas + (tildes * (pch+hlen))
169 memmove(p + hlen + v, p + 1, l); /* Subst homedir */
170 memmove(p, pwd->pw_dir, hlen);
172 p[hlen] = '/';
173 p += hlen + v;
193 int hlen = pwd ? strlen(pwd->pw_dir) : 0; local
197 if (hlen && pwd->pw_dir[hlen-1] != '/')
204 char * np = substvar(var, pwd, hlen, pc
[all...]
/haiku-fatelf/src/bin/network/ping/
H A Dping.c641 int hlen, hlen2, dupflag; local
647 hlen = ip->ip_hl << 2;
648 if (cc < hlen + ICMP_MINLEN) {
656 cc -= hlen;
657 icp = (struct icmp *)(buf + hlen);
727 ip2 = (struct ip *) (buf + hlen + sizeof (struct icmp));
740 for (; hlen > (int)sizeof(struct ip); --hlen, ++cp)
743 hlen = 0;
747 hlen
1160 int hlen; local
1210 int hlen; local
[all...]
/haiku-fatelf/src/bin/gdb/readline/
H A Disearch.c164 int hlen; local
210 lines = (char **)xmalloc ((1 + (hlen = i)) * sizeof (char *));
211 for (i = 0; i < hlen; i++)
224 hlen++;
475 if (reverse ? (i < 0) : (i == hlen))
/haiku-fatelf/src/bin/network/traceroute/
H A Dtraceroute.c1051 register int hlen; local
1056 hlen = ip->ip_hl << 2;
1057 if (cc < hlen + ICMP_MINLEN) {
1063 cc -= hlen;
1064 icp = (struct icmp *)(buf + hlen);
1087 hlen = hip->ip_hl << 2;
1095 hicmp = (struct icmp *)((u_char *)hip + hlen);
1097 if (hlen + 8 <= cc &&
1103 up = (struct udphdr *)((u_char *)hip + hlen);
1105 if (hlen
1132 register int hlen; local
[all...]
/haiku-fatelf/src/bin/findutils/lib/
H A Dbuildcmd.c309 size_t hlen = strlen (haystack); local
315 while (hlen >= nlen)
319 step = mbrlen (haystack, hlen, &mbstate);
323 hlen -= step;
/haiku-fatelf/src/add-ons/translators/jpeg2000/libjasper/
H A Djpc_qmfb.c200 int hlen; local
211 hlen = hendind - hstartind;
247 hptr = &hstartptr[(hlen - 1) * step];
248 ptr = &startptr[(((llen + hlen - 1) >> 1) << 1) * step];
249 n = hlen - (tmpptr - buf);
286 ptr = &startptr[((((llen + hlen) >> 1) << 1) - 1) * step];
287 hptr = &hstartptr[(hlen - 1) * step];
288 n = hlen - (tmpptr - buf);
324 int hlen; local
345 hlen
[all...]
/haiku-fatelf/src/bin/bash/lib/readline/
H A Disearch.c97 cxt->hlen = cxt->hindex = 0;
224 cxt->lines = (char **)xmalloc ((1 + (cxt->hlen = i)) * sizeof (char *));
225 for (i = 0; i < cxt->hlen; i++)
238 cxt->hlen++;
561 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen))
H A Drlprivate.h71 int hlen; member in struct:__rl_search_context
/haiku-fatelf/src/bin/network/ping6/
H A Dping6.c2526 int hlen; local
2533 hlen = sizeof(*ip6);
2536 cp += hlen;
2541 hlen = (((struct ip6_hbh *)cp)->ip6h_len+1) << 3;
2546 hlen = (((struct ip6_dest *)cp)->ip6d_len+1) << 3;
2551 hlen = sizeof(struct ip6_frag);
2556 hlen = (((struct ip6_rthdr *)cp)->ip6r_len+1) << 3;
2562 hlen = (((struct ah *)cp)->ah_len+2) << 2;
2588 if ((cp += hlen) >= end)
/haiku-fatelf/src/bin/network/ftp/
H A Dfetch.c618 size_t hlen, plen; local
621 hlen = strlen(host);
635 if (hlen < plen)
637 if (strncasecmp(host + hlen - plen,
/haiku-fatelf/src/add-ons/kernel/bus_managers/firewire/
H A Dfwohci.cpp2650 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-fatelf/src/bin/network/wget/src/
H A Dcookies.c617 int hlen = strlen (host);
621 if (hlen > dlen && host[hlen - dlen - 1] != '.')
613 int hlen = strlen (host); local
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro100/dev/fxp/
H A Dif_fxp.c1789 int32_t hlen, len, pktlen, temp32; local
1818 hlen = ip->ip_hl << 2;
1820 if (hlen < sizeof(struct ip))
1822 if (ntohs(ip->ip_len) < hlen)
1831 if (pktlen < (hlen + sizeof(struct tcphdr)))
1835 if (pktlen < (hlen + sizeof(struct udphdr)))
1837 uh = (struct udphdr *)((caddr_t)ip + hlen);
1847 len = hlen - sizeof(struct ip);
/haiku-fatelf/src/libs/compat/freebsd_network/compat/net/
H A Dif_var.h659 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
/haiku-fatelf/src/add-ons/kernel/drivers/network/marvell_yukon/dev/msk/
H A Dif_msk.c3101 int32_t hlen, len, pktlen, temp32; local
3144 hlen = ip->ip_hl << 2;
3146 if (hlen < sizeof(struct ip))
3148 if (ntohs(ip->ip_len) < hlen)
3157 if (pktlen < (hlen + sizeof(struct tcphdr)))
3161 if (pktlen < (hlen + sizeof(struct udphdr)))
3163 uh = (struct udphdr *)((caddr_t)ip + hlen);
3172 len = hlen - sizeof(struct ip);
/haiku-fatelf/src/add-ons/kernel/drivers/network/syskonnect/dev/sk/
H A Dif_sk.c2687 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);

Completed in 354 milliseconds

12