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

123

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dgethostname.c47 gethostname(char *hname, int hlen) argument
58 (void) strncpy(hname, u.nodename, hlen);
/illumos-gate/usr/src/uts/common/inet/
H A Dip_impl.h71 #define IPH_TCPH_CHECKSUMP(ipha, hlen) \
72 ((uint16_t *)(((uchar_t *)(ipha)) + ((hlen) + TCP_CHECKSUM_OFFSET)))
74 #define IPH_UDPH_CHECKSUMP(ipha, hlen) \
75 ((uint16_t *)(((uchar_t *)(ipha)) + ((hlen) + UDP_CHECKSUM_OFFSET)))
77 #define IPH_ICMPV6_CHECKSUMP(ipha, hlen) \
78 ((uint16_t *)(((uchar_t *)(ipha)) + ((hlen) + ICMPV6_CHECKSUM_OFFSET)))
/illumos-gate/usr/src/common/net/wanboot/
H A DparseURL.c55 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/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c164 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 Dspppcomp.c1324 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/boot/lib/libstand/
H A Dudp.c144 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/cmd/boot/fiocompress/
H A Dfiocompress.c177 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/cmd/cmd-inet/usr.bin/nc/
H A Dsocks.c156 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/uts/common/inet/ipf/
H A Dip_log.c237 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...]
H A Dip_fil_solaris.c1104 int tlen, hlen; local
1123 hlen = sizeof(ip6_t);
1126 hlen = sizeof(ip_t);
1127 hlen += sizeof(*tcp2);
1128 if ((m = (mblk_t *)allocb(hlen + 64, BPRI_HI)) == NULL)
1133 m->b_wptr = m->b_rptr + hlen;
1135 bzero((char *)ip, hlen);
1136 tcp2 = (struct tcphdr *)(m->b_rptr + hlen - sizeof(*tcp2));
1202 int i, hlen; local
1216 hlen
1279 int hlen, code; local
2082 int rval, hlen; local
2132 int rval, hlen; local
[all...]
H A Dfil.c1318 int hlen, ol, mv, p, i; local
1326 hlen = fin->fin_hlen;
1419 if (hlen == sizeof(*ip)) {
1435 for (s = (u_char *)(ip + 1), hlen -= (int)sizeof(*ip); hlen > 0; ) {
1442 if (hlen < 2)
1445 if (ol < 2 || ol > hlen)
1482 hlen -= ol;
1500 /* Parameters: hlen(I) - length of IP packet header */
1509 int fr_makefrip(hlen, i
2945 int hlen; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c335 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/uts/intel/io/vmxnet3s/
H A Dvmxnet3_tx.c31 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/lib/libsip/common/
H A Dsip_reass.c80 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/lib/nsswitch/dns/common/
H A Ddns_common.c431 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/cmd-inet/usr.lib/mdnsd/
H A Danonymous.c44 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/common/inet/ip/
H A Dtn_ipopt.c824 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...]
H A Dip_arp.c217 ip_nce_resolve_all(ill_t *ill, uchar_t *src_haddr, uint32_t hlen, argument
244 if (NCE_MYADDR(ncec) && hlen == ncec->ncec_ill->ill_phys_addr_length &&
245 bcmp(lladdr, src_haddr, hlen) == 0) {
295 * update ncec with src_haddr, hlen.
311 ll_changed = nce_cmp_ll_addr(ncec, src_haddr, hlen);
817 uint32_t hlen, plen; local
876 hlen = arh->arh_hlen;
878 if (MBLKL(mp1) < ARH_FIXED_LEN + 2 * hlen + 2 * plen) {
883 * hlen 0 is used for RFC 1868 UnARP.
885 * Note that the rest of the code checks that hlen i
1554 uint_t hlen; local
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_subr.c146 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/sdiff/
H A Dsdiff.c89 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/netinet/
H A Ddhcp.h185 uint8_t hlen; /* Hardware address length */ member in struct:dhcp
/illumos-gate/usr/src/cmd/stat/common/
H A Ddsr.c615 size_t hlen = strlen(hostname); local
627 if (cp[hlen] != ',' && cp[hlen] != ':') {
628 special = &cp[hlen];
635 cp = &cp[hlen];
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c144 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/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c235 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/ipf/tools/
H A Dipftest.c78 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);

Completed in 1945 milliseconds

123