/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip.c | 12137 uint_t hlen; in ip_xmit_attach_llhdr() local 12149 hlen = MBLKL(mp1); in ip_xmit_attach_llhdr() 12154 if (hlen != 0 && (rptr - mp->b_datap->db_base) >= hlen) { in ip_xmit_attach_llhdr() 12155 rptr -= hlen; in ip_xmit_attach_llhdr() 12156 bcopy(mp1->b_rptr, rptr, hlen); in ip_xmit_attach_llhdr()
|
H A D | ip_mroute.c | 2617 int hlen = IPH_HDR_LENGTH(ipha); in ip_mroute_decap() local 2627 ipha_encap = (ipha_t *)((char *)ipha + hlen); in ip_mroute_decap() 2628 if (mp->b_wptr - mp->b_rptr < hlen + IP_SIMPLE_HDR_LENGTH) { in ip_mroute_decap() 2629 ipha = ip_pullup(mp, hlen + IP_SIMPLE_HDR_LENGTH, ira); in ip_mroute_decap() 2637 ipha_encap = (ipha_t *)((char *)ipha + hlen); in ip_mroute_decap() 2640 if (mp->b_wptr - mp->b_rptr < hlen + hlen_encap) { in ip_mroute_decap() 2641 ipha = ip_pullup(mp, hlen + hlen_encap, ira); in ip_mroute_decap() 2649 ipha_encap = (ipha_t *)((char *)ipha + hlen); in ip_mroute_decap() 2714 mp->b_rptr += hlen; in ip_mroute_decap() 2715 ira->ira_pktlen -= hlen; in ip_mroute_decap()
|
H A D | sadb.c | 7610 int hlen; local 7623 hlen = IPH_HDR_LENGTH(ipha) + opt_storage[IPOPT_OLEN]; 7624 hlen = (hlen + 3) & ~3; 7625 if (hlen > IP_MAX_HDR_LENGTH) 7626 hlen = IP_MAX_HDR_LENGTH; 7627 hlen -= IPH_HDR_LENGTH(ipha); 7630 if ((db->db_ref != 1) || (mp->b_wptr + hlen > db->db_lim)) { 7638 new_mp = allocb_tmpl(hlen + copylen + 7690 int hlen; local 7711 hlen = (4 + sec_opt_len + 7) & ~7; [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/ |
H A D | ip.c | 1234 uint16_t hlen; in udphdr_print() local 1240 mdb_nhconvert(&hlen, &udph->uh_ulen, sizeof (hlen)); in udphdr_print() 1245 dport, dport, hlen, udph->uh_sum); in udphdr_print()
|
/illumos-gate/usr/src/cmd/boot/fiocompress/ |
H A D | fiocompress.c | 177 size_t blks, dstlen, hlen; in do_comp() local 182 hlen = offset = sizeof (struct comphdr) + blks * sizeof (uint64_t); in do_comp() 183 hdr = malloc(hlen); in do_comp() 185 (void) fprintf(stderr, HDR_ALLOC, hlen); in do_comp() 238 if (write(dstfd, hdr, hlen) != hlen) { in do_comp() 240 hlen, dstfile, strerror(errno)); in do_comp()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
H A D | in.rdisc.c | 766 int hlen; in pr_pack() local 770 hlen = ip->ip_hl << 2; in pr_pack() 771 if (cc < hlen + ICMP_MINLEN) { in pr_pack() 778 cc -= hlen; in pr_pack() 779 icp = (struct icmp *)ALIGN(buf + hlen); in pr_pack() 817 pr_hex(buf+hlen, cc); in pr_pack() 820 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack() 885 ALIGN(buf + hlen + ICMP_MINLEN + in pr_pack() 923 pr_hex(buf+hlen, cc); in pr_pack() 926 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_virtio_net.c | 192 iov_trim_hdr(struct iovec *iov, int *iovcnt, unsigned int hlen) in iov_trim_hdr() argument 196 if (iov[0].iov_len < hlen) { in iov_trim_hdr() 204 iov[0].iov_len -= hlen; in iov_trim_hdr() 216 iov[0].iov_base = (void *)((uintptr_t)iov[0].iov_base + hlen); in iov_trim_hdr()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 154 size_t hlen, wlen; in socks_connect() local 206 hlen = strlen(host); in socks_connect() 207 if (hlen > 255) in socks_connect() 213 buf[4] = hlen; in socks_connect() 214 (void) memcpy(buf + 5, host, hlen); in socks_connect() 215 (void) memcpy(buf + 5 + hlen, &serverport, in socks_connect() 217 wlen = 5 + hlen + sizeof (serverport); in socks_connect()
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getaddrinfo.c | 685 size_t hlen = sizeof (_hostname); in get_addr() local 687 if (strlcpy(_hostname, hostname, hlen) >= hlen) in get_addr()
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_nat.c | 5378 int hlen, advance; local 5381 hlen = TCP_OFF(tcp) << 2; 5382 if (hlen > sizeof(*tcp)) { 5384 ep = (u_char *)tcp + hlen;
|
H A D | ip_fil_solaris.c | 1318 int tlen, hlen; local 1337 hlen = sizeof(ip6_t); 1340 hlen = sizeof(ip_t); 1416 int i, hlen; local 1430 hlen = sizeof(*ip6); 1459 hlen = sizeof(*ip); 1475 fnew.fin_hlen = hlen; 1493 int hlen, code; local 1550 hlen = sizeof(ip_t); 2416 int rval, hlen; in ipf_hook() local [all …]
|
H A D | ip_log.c | 242 register size_t hlen; local 264 hlen = fin->fin_hlen; 291 hlen += MIN(sizeof(struct icmp) + 8, 295 hlen += MIN(sizeof(struct icmp), 312 hlen += MIN(sizeof(struct icmp6_hdr) + 8, 315 hlen += MIN(sizeof(struct icmp6_hdr), 361 mlen = fin->fin_plen - hlen; 370 ipfl.fl_hlen = (u_char)hlen; 395 sizes[1] = hlen + mlen; 399 sizes[1] = hlen + mlen; [all …]
|
H A D | fil.c | 1443 if (hlen < 2) 1483 hlen -= ol; 1511 int hlen; in fr_makefrip() 2322 int hlen; 2946 int hlen; local 2956 hlen = 0; 3045 m->m_off += hlen; 3047 m->m_len -= hlen; 3113 while (hlen) { 3116 hlen -= add; [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 932 size_t hlen, slen; in fake_getnameinfo() local 939 hlen = hostlen; in fake_getnameinfo() 940 if (hostlen < 0 || hlen != hostlen) { in fake_getnameinfo() 962 strncpy(host, tmpbuf, hlen); in fake_getnameinfo() 967 strncpy (host, p, hlen); in fake_getnameinfo() 984 strncpy (host, hp->h_name, hlen); in fake_getnameinfo()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipftest.c | 73 int fd, i, dir, c, loaded, dump, hlen; local 83 hlen = 0; 226 hlen = IP_HL(ip) << 2; 230 hlen = sizeof(ip6_t); 235 i = fr_check(ip, hlen, ifp, dir, &m, ifs);
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_icap.c | 1213 int nread = 0, hlen, tlen = 2; in vs_icap_send_chunk() local 1224 hlen = snprintf(head, sizeof (head), "%x\r\n", nread); in vs_icap_send_chunk() 1225 hdr += (VS_HDR_SZ - hlen); in vs_icap_send_chunk() 1226 (void) memcpy(hdr, head, hlen); in vs_icap_send_chunk() 1232 hlen + nread + tlen) < 0) { in vs_icap_send_chunk()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 2187 uint_t slen, alen, hlen; in pr_name() local 2229 hlen = strlen(buf); in pr_name() 2230 cp = (char *)(buf + hlen); in pr_name() 2231 (void) snprintf(cp, sizeof (buf) - hlen, " (%s)", in pr_name()
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 424 int hlen = 0, alen, iplen, len, isans; in _nss_dns_gethost_withttl() local 613 hlen = strlen(host); in _nss_dns_gethost_withttl() 615 if (hlen <= 0) { in _nss_dns_gethost_withttl() 631 if ((isans = strncasecmp(host, ans, hlen)) != 0 && in _nss_dns_gethost_withttl() 673 if (alen + hlen + 2 > NS_MAXMSG) { in _nss_dns_gethost_withttl() 681 alen += hlen; in _nss_dns_gethost_withttl() 682 apc += hlen; in _nss_dns_gethost_withttl() 692 hlen = len; in _nss_dns_gethost_withttl() 717 len = iplen + 2 + hlen + alen; in _nss_dns_gethost_withttl() 730 blen += hlen; in _nss_dns_gethost_withttl() [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 581 size_t no, mlen, tlen, hlen = olen - 1; in expand() local 601 mlen = ((hlen + tlen) * in expand() 612 hlen); in expand() 613 lptr = lptr + hlen; in expand()
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | vjcompress.c | 162 register uint_t hlen = getip_hl(ip); in vj_compress_tcp() local 188 thlen = (hlen + getth_off(th)) << 2; in vj_compress_tcp() 277 deltaS = hlen; in vj_compress_tcp() 492 register uint_t hlen; in vj_uncompress_uncomp() local 495 hlen = getip_hl(buf) << 2; in vj_uncompress_uncomp() 499 (hlen += getth_off(buf+hlen) << 2) > buflen || hlen > MAX_HDR) { in vj_uncompress_uncomp() 512 BCOPY(buf, &cs->cs_ip, hlen); in vj_uncompress_uncomp() 514 cs->cs_hlen = hlen & 0xff; in vj_uncompress_uncomp() 536 register uint_t hlen; in vj_uncompress_tcp() local 573 hlen = getip_hl(&cs->cs_ip) << 2; in vj_uncompress_tcp() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_reass.c | 78 int hlen; in sip_get_msglen() local 88 hlen = c - p; in sip_get_msglen() 89 if ((hlen + strlen("content-length")) >= msglen) in sip_get_msglen() 113 hlen = e - p + 4; /* 4 for 2 CRLFs ?? */ in sip_get_msglen() 114 value += hlen; in sip_get_msglen()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | gethostname.c | 45 gethostname(char *hname, int hlen) argument 56 (void) strncpy(hname, u.nodename, hlen);
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 2027 size_t mlen, tlen, hlen = optr - name; in expand() local 2049 mlen = ((hlen + tlen) * (isa->isa_optno - 1)) + in expand() 2058 (void) strncpy(lptr, name, hlen); in expand() 2059 lptr = lptr + hlen; in expand()
|
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 87 static int hlen; /* Half line length with space for gutter */ variable 209 hlen = (llen - WGUTTER +1)/2; in main() 405 (void) getlen((hlen + WGUTTER) % 8, bp); in put2() 538 if (tlen >= hlen) { in getlen() 549 if (tlen >= hlen) { in getlen() 562 if (tlen >= hlen) { in getlen() 576 if (tlen > hlen) { in getlen() 600 for (i = 0; i < hlen - len1; i++) in putmid()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 333 int hlen; in check_reply() local 339 hlen = ip->ip_hl << 2; in check_reply() 340 if (cc < hlen + ICMP_MINLEN) { in check_reply() 347 cc -= hlen; in check_reply() 349 icp = (struct icmp *)(buf + hlen); in check_reply() 366 hlen = hip->ip_hl << 2; in check_reply() 367 cc -= hlen; in check_reply() 375 hicmp = (struct icmp *)((uchar_t *)hip + hlen); in check_reply() 386 up = (struct udphdr *)((uchar_t *)hip + hlen); in check_reply()
|