/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | gethostname.c | 47 gethostname(char *hname, int hlen) argument 58 (void) strncpy(hname, u.nodename, hlen);
|
/illumos-gate/usr/src/common/net/wanboot/ |
H A D | parseURL.c | 55 size_t hlen; local 77 hlen = strlcpy(hport->hostname, optr, sizeof (hport->hostname)); 78 if (hlen == 0 || hlen >= sizeof (hport->hostname)) {
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | udp.c | 144 size_t hlen; local 191 hlen = ip->ip_hl << 2; 192 if (hlen < sizeof(*ip) || 193 in_cksum(ip, hlen) != 0) { 219 if (hlen != sizeof(*ip)) { 220 bcopy(((u_char *)ip) + hlen, uh, len - hlen); 222 n -= hlen - sizeof(*ip);
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_reass.c | 80 int hlen; local 90 hlen = c - p; 91 if ((hlen + strlen("content-length")) >= msglen) 115 hlen = e - p + 4; /* 4 for 2 CRLFs ?? */ 116 value += hlen;
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_subr.c | 146 int hlen = strlen(host) + 1; local 158 nvp->ri_hostname = kmem_zalloc(hlen, KM_SLEEP); 165 nvp->ri_hostnamelen = hlen; 185 (void) strncpy(nvp->ri_hostname, host, hlen);
|
/illumos-gate/usr/src/cmd/boot/fiocompress/ |
H A D | fiocompress.c | 177 size_t blks, dstlen, hlen; local 182 hlen = offset = sizeof (struct comphdr) + blks * sizeof (uint64_t); 183 hdr = malloc(hlen); 185 (void) fprintf(stderr, HDR_ALLOC, hlen); 238 if (write(dstfd, hdr, hlen) != hlen) { 240 hlen, dstfile, strerror(errno));
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_log.c | 237 register size_t hlen; local 259 hlen = fin->fin_hlen; 266 hlen += MIN(sizeof(tcphdr_t), fin->fin_dlen); 268 hlen += MIN(sizeof(udphdr_t), fin->fin_dlen); 286 hlen += MIN(sizeof(struct icmp) + 8, 290 hlen += MIN(sizeof(struct icmp), 307 hlen += MIN(sizeof(struct icmp6_hdr) + 8, 310 hlen += MIN(sizeof(struct icmp6_hdr), 356 mlen = fin->fin_plen - hlen; 365 ipfl.fl_hlen = (u_char)hlen; [all...] |
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 144 int hlen, ip_len, tcp_hdr_len, tcp_data_len; local 222 hlen = ip_len + ETHERNET_HEADER_SIZE - tcp_data_len; 293 m_head->b_rptr += hlen;
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getaddrinfo.c | 596 size_t hlen = sizeof (_hostname); local 598 if (strlcpy(_hostname, hostname, hlen) >= hlen) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 335 int hlen; local 341 hlen = ip->ip_hl << 2; 342 if (cc < hlen + ICMP_MINLEN) { 349 cc -= hlen; 351 icp = (struct icmp *)(buf + hlen); 368 hlen = hip->ip_hl << 2; 369 cc -= hlen; 377 hicmp = (struct icmp *)((uchar_t *)hip + hlen); 388 up = (struct udphdr *)((uchar_t *)hip + hlen);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 156 size_t hlen, wlen; local 208 hlen = strlen(host); 209 if (hlen > 255) 215 buf[4] = hlen; 216 (void) memcpy(buf + 5, host, hlen); 217 (void) memcpy(buf + 5 + hlen, &serverport, 219 wlen = 5 + hlen + sizeof (serverport);
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipftest.c | 78 int fd, i, dir, c, loaded, dump, hlen; local 88 hlen = 0; 231 hlen = IP_HL(ip) << 2; 235 hlen = sizeof(ip6_t); 240 i = fr_check(ip, hlen, ifp, dir, &m, ifs);
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | vjcompress.c | 164 register uint_t hlen = getip_hl(ip); local 184 th = (struct tcphdr *)&((int *)ip)[hlen]; 190 thlen = (hlen + getth_off(th)) << 2; 276 oth = (struct tcphdr *)&((int *)&cs->cs_ip)[hlen]; 279 deltaS = hlen; 494 register uint_t hlen; local 497 hlen = getip_hl(buf) << 2; 500 hlen + sizeof (struct tcphdr) > buflen || 501 (hlen += getth_off(buf+hlen) << 538 register uint_t hlen; local [all...] |
H A D | spppcomp.c | 1324 int hlen; local 1346 hlen = i + 1; 1351 if (hlen < (IS_DECOMP_AC(cp) ? 0 : 2) + (IS_DECOMP_PROT(cp) ? 1 : 2)) { 1355 if (mp->b_rptr + hlen > mp->b_wptr) { 1360 if (!adjmsg(mp, hlen)) { 1363 hlen = 0; 1365 if (hlen != PPP_HDRLEN) { 1376 dp = mp->b_rptr + hlen - PPP_HDRLEN; 1384 mp->b_rptr += hlen; 1496 hlen [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping_aux.c | 235 int hlen, hlen1; local 292 hlen = ip->ip_hl << 2; 294 if ((cc < sizeof (struct ip)) || (cc < hlen + ICMP_MINLEN)) { 302 cc -= hlen; 304 icp = (struct icmp *)(buf + hlen); 1061 hlen -= sizeof (struct ip); 1064 if (verbose && hlen > 0) 1065 pr_options((uchar_t *)buf, hlen);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | anonymous.c | 44 int hlen; local 72 if (!NSEC3HashName(rr->name, nsec3, AnonData, len, hashName, &hlen)) 77 if (hlen != SHA1_HASH_LENGTH) 79 LogMsg("InitializeNSEC3Record: hlen wrong %d", hlen); 82 mDNSPlatformMemCopy(nxt, hashName, hlen); 277 int hlen; local 399 if (!NSEC3HashName(nsec3RR->name, nsec3, AnonData, AnonDataLen, hashName, &hlen)) 404 if (hlen != SHA1_HASH_LENGTH) 406 LogMsg("AnonInfoAnswersQuestion: hlen wron [all...] |
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_tx.c | 31 uint16_t hlen; member in struct:vmxnet3_offload_t 79 ol->hlen = 0; 128 ol->hlen = ethLen + ipLen + tcpLen; 132 ret = ol->hlen; 136 ol->hlen = start + ethLen; 274 txDesc->txd.len < ol->hlen) { 279 txDesc->txd.hlen = ol->hlen; 291 (totLen - ol->hlen + ol->msscof - 1) / ol->msscof;
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 581 size_t no, mlen, tlen, hlen = olen - 1; local 601 mlen = ((hlen + tlen) * 612 hlen); 613 lptr = lptr + hlen;
|
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | dsr.c | 615 size_t hlen = strlen(hostname); local 627 if (cp[hlen] != ',' && cp[hlen] != ':') { 628 special = &cp[hlen]; 635 cp = &cp[hlen];
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 431 int hlen = 0, alen, iplen, len, isans; local 620 hlen = strlen(host); 622 if (hlen <= 0) { 638 if ((isans = strncasecmp(host, ans, hlen)) != 0 && 680 if (alen + hlen + 2 > NS_MAXMSG) { 688 alen += hlen; 689 apc += hlen; 699 hlen = len; 724 len = iplen + 2 + hlen + alen; 737 blen += hlen; [all...] |
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 89 static int hlen; /* Half line length with space for gutter */ variable 211 hlen = (llen - WGUTTER +1)/2; 407 (void) getlen((hlen + WGUTTER) % 8, bp); 540 if (tlen >= hlen) { 551 if (tlen >= hlen) { 564 if (tlen >= hlen) { 578 if (tlen > hlen) { 597 * hlen is length of half line 602 for (i = 0; i < hlen - len1; i++)
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 824 uint_t hlen; local 864 hlen = IPH_HDR_LENGTH(ipha) - IP_SIMPLE_HDR_LENGTH; 867 if (hlen >= sec_opt_len) { 869 if (sec_opt_len == 0 && hlen > 0 && 882 if (hlen > 0) { 888 hlen = IPH_HDR_LENGTH(ipha) + opt_storage[IPOPT_OLEN]; 889 hlen = (hlen + 3) & ~3; 890 if (hlen > IP_MAX_HDR_LENGTH) 891 hlen 1379 uint_t hlen; local [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs3_vfsops.c | 255 size_t hlen; /* length of hostname */ local 372 sizeof (netname), &hlen); 375 nargs->hostname = kmem_zalloc(hlen, KM_SLEEP);
|
H A D | nfs_vfsops.c | 263 size_t hlen; /* length of hostname */ local 391 sizeof (netname), &hlen); 394 nargs->hostname = kmem_zalloc(hlen, KM_SLEEP);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 932 size_t hlen, slen; local 939 hlen = hostlen; 940 if (hostlen < 0 || hlen != hostlen) { 962 strncpy(host, tmpbuf, hlen); 967 strncpy (host, p, hlen); 984 strncpy (host, hp->h_name, hlen);
|