/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | vjcompress.c | 164 register uint_t hlen = getip_hl(ip); in vj_compress_tcp() local 184 th = (struct tcphdr *)&((int *)ip)[hlen]; in vj_compress_tcp() 190 thlen = (hlen + getth_off(th)) << 2; in vj_compress_tcp() 276 oth = (struct tcphdr *)&((int *)&cs->cs_ip)[hlen]; in vj_compress_tcp() 279 deltaS = hlen; in vj_compress_tcp() 494 register uint_t hlen; in vj_uncompress_uncomp() local 497 hlen = getip_hl(buf) << 2; in vj_uncompress_uncomp() 500 hlen + sizeof (struct tcphdr) > buflen || in vj_uncompress_uncomp() 501 (hlen += getth_off(buf+hlen) << 2) > buflen || hlen > MAX_HDR) { in vj_uncompress_uncomp() 514 BCOPY(buf, &cs->cs_ip, hlen); in vj_uncompress_uncomp() [all …]
|
H A D | spppcomp.c | 1324 int hlen; in spppcomp_inpkt() local 1346 hlen = i + 1; in spppcomp_inpkt() 1351 if (hlen < (IS_DECOMP_AC(cp) ? 0 : 2) + (IS_DECOMP_PROT(cp) ? 1 : 2)) { in spppcomp_inpkt() 1355 if (mp->b_rptr + hlen > mp->b_wptr) { in spppcomp_inpkt() 1360 if (!adjmsg(mp, hlen)) { in spppcomp_inpkt() 1363 hlen = 0; in spppcomp_inpkt() 1365 if (hlen != PPP_HDRLEN) { in spppcomp_inpkt() 1376 dp = mp->b_rptr + hlen - PPP_HDRLEN; in spppcomp_inpkt() 1384 mp->b_rptr += hlen; in spppcomp_inpkt() 1496 hlen = (proto == PPP_VJC_COMP) ? MAX_VJHDR : MAX_TCPIPHLEN; in spppcomp_inpkt() [all …]
|
/titanic_41/usr/src/uts/common/inet/ |
H A D | ip_impl.h | 71 #define IPH_TCPH_CHECKSUMP(ipha, hlen) \ argument 72 ((uint16_t *)(((uchar_t *)(ipha)) + ((hlen) + TCP_CHECKSUM_OFFSET))) 74 #define IPH_UDPH_CHECKSUMP(ipha, hlen) \ argument 75 ((uint16_t *)(((uchar_t *)(ipha)) + ((hlen) + UDP_CHECKSUM_OFFSET))) 77 #define IPH_ICMPV6_CHECKSUMP(ipha, hlen) \ argument 78 ((uint16_t *)(((uchar_t *)(ipha)) + ((hlen) + ICMPV6_CHECKSUM_OFFSET)))
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | ssh-rsa.c | 216 u_int ret, rsasize, oidlen = 0, hlen = 0; in openssh_RSA_verify() local 226 hlen = 20; in openssh_RSA_verify() 231 hlen = 16; in openssh_RSA_verify() 237 if (hashlen != hlen) { in openssh_RSA_verify() 253 if (len != hlen + oidlen) { in openssh_RSA_verify() 254 error("bad decrypted len: %d != %d + %d", len, hlen, oidlen); in openssh_RSA_verify() 261 if (memcmp(decrypted + oidlen, hash, hlen) != 0) { in openssh_RSA_verify()
|
/titanic_41/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 …]
|
H A D | ip_fil_solaris.c | 1104 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 = sizeof(*ip6); [all …]
|
H A D | fil.c | 1318 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; 1509 int fr_makefrip(hlen, ip, fin) in fr_makefrip() argument 1510 int hlen; in fr_makefrip() 1517 fin->fin_hlen = (u_short)hlen; [all …]
|
/titanic_41/usr/src/common/net/wanboot/ |
H A D | parseURL.c | 55 size_t hlen; in url_parse_hostport() local 77 hlen = strlcpy(hport->hostname, optr, sizeof (hport->hostname)); in url_parse_hostport() 78 if (hlen == 0 || hlen >= sizeof (hport->hostname)) { in url_parse_hostport()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 335 int hlen; in check_reply() local 341 hlen = ip->ip_hl << 2; in check_reply() 342 if (cc < hlen + ICMP_MINLEN) { in check_reply() 349 cc -= hlen; in check_reply() 351 icp = (struct icmp *)(buf + hlen); in check_reply() 368 hlen = hip->ip_hl << 2; in check_reply() 369 cc -= hlen; in check_reply() 377 hicmp = (struct icmp *)((uchar_t *)hip + hlen); in check_reply() 388 up = (struct udphdr *)((uchar_t *)hip + hlen); in check_reply()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 156 size_t hlen, wlen; in socks_connect() local 208 hlen = strlen(host); in socks_connect() 209 if (hlen > 255) in socks_connect() 215 buf[4] = hlen; in socks_connect() 216 (void) memcpy(buf + 5, host, hlen); in socks_connect() 217 (void) memcpy(buf + 5 + hlen, &serverport, in socks_connect() 219 wlen = 5 + hlen + sizeof (serverport); in socks_connect()
|
/titanic_41/usr/src/lib/libsip/common/ |
H A D | sip_reass.c | 80 int hlen; in sip_get_msglen() local 90 hlen = c - p; in sip_get_msglen() 91 if ((hlen + strlen("content-length")) >= msglen) in sip_get_msglen() 115 hlen = e - p + 4; /* 4 for 2 CRLFs ?? */ in sip_get_msglen() 116 value += hlen; in sip_get_msglen()
|
/titanic_41/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 431 int hlen = 0, alen, iplen, len, isans; in _nss_dns_gethost_withttl() local 620 hlen = strlen(host); in _nss_dns_gethost_withttl() 622 if (hlen <= 0) { in _nss_dns_gethost_withttl() 638 if ((isans = strncasecmp(host, ans, hlen)) != 0 && in _nss_dns_gethost_withttl() 680 if (alen + hlen + 2 > NS_MAXMSG) { in _nss_dns_gethost_withttl() 688 alen += hlen; in _nss_dns_gethost_withttl() 689 apc += hlen; in _nss_dns_gethost_withttl() 699 hlen = len; in _nss_dns_gethost_withttl() 724 len = iplen + 2 + hlen + alen; in _nss_dns_gethost_withttl() 737 blen += hlen; in _nss_dns_gethost_withttl() [all …]
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 824 uint_t hlen; in tsol_check_label_v4() local 864 hlen = IPH_HDR_LENGTH(ipha) - IP_SIMPLE_HDR_LENGTH; in tsol_check_label_v4() 867 if (hlen >= sec_opt_len) { in tsol_check_label_v4() 869 if (sec_opt_len == 0 && hlen > 0 && in tsol_check_label_v4() 882 if (hlen > 0) { in tsol_check_label_v4() 888 hlen = IPH_HDR_LENGTH(ipha) + opt_storage[IPOPT_OLEN]; in tsol_check_label_v4() 889 hlen = (hlen + 3) & ~3; in tsol_check_label_v4() 890 if (hlen > IP_MAX_HDR_LENGTH) in tsol_check_label_v4() 891 hlen = IP_MAX_HDR_LENGTH; in tsol_check_label_v4() 892 hlen -= IPH_HDR_LENGTH(ipha); in tsol_check_label_v4() [all …]
|
H A D | ip_arp.c | 217 ip_nce_resolve_all(ill_t *ill, uchar_t *src_haddr, uint32_t hlen, in ip_nce_resolve_all() argument 244 if (NCE_MYADDR(ncec) && hlen == ncec->ncec_ill->ill_phys_addr_length && in ip_nce_resolve_all() 245 bcmp(lladdr, src_haddr, hlen) == 0) { in ip_nce_resolve_all() 311 ll_changed = nce_cmp_ll_addr(ncec, src_haddr, hlen); in ip_nce_resolve_all() 817 uint32_t hlen, plen; in arp_process_packet() local 876 hlen = arh->arh_hlen; in arp_process_packet() 878 if (MBLKL(mp1) < ARH_FIXED_LEN + 2 * hlen + 2 * plen) { in arp_process_packet() 889 if ((hlen > 0 && hlen != ill->ill_phys_addr_length) || plen == 0) { in arp_process_packet() 912 arhp += hlen; in arp_process_packet() 917 arhp += hlen; in arp_process_packet() [all …]
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | gethostname.c | 47 gethostname(char *hname, int hlen) argument 58 (void) strncpy(hname, u.nodename, hlen);
|
/titanic_41/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_subr.c | 146 int hlen = strlen(host) + 1; in rdc_create_svinfo() local 158 nvp->ri_hostname = kmem_zalloc(hlen, KM_SLEEP); in rdc_create_svinfo() 165 nvp->ri_hostnamelen = hlen; in rdc_create_svinfo() 185 (void) strncpy(nvp->ri_hostname, host, hlen); in rdc_create_svinfo()
|
/titanic_41/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; in main() 407 (void) getlen((hlen + WGUTTER) % 8, bp); in put2() 540 if (tlen >= hlen) { in getlen() 551 if (tlen >= hlen) { in getlen() 564 if (tlen >= hlen) { in getlen() 578 if (tlen > hlen) { in getlen() 602 for (i = 0; i < hlen - len1; i++) in putmid()
|
/titanic_41/usr/src/cmd/stat/common/ |
H A D | dsr.c | 615 size_t hlen = strlen(hostname); in cur_special() local 627 if (cp[hlen] != ',' && cp[hlen] != ':') { in cur_special() 628 special = &cp[hlen]; in cur_special() 635 cp = &cp[hlen]; in cur_special()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping_aux.c | 233 int hlen, hlen1; in check_reply() local 289 hlen = ip->ip_hl << 2; in check_reply() 291 if ((cc < sizeof (struct ip)) || (cc < hlen + ICMP_MINLEN)) { in check_reply() 299 cc -= hlen; in check_reply() 301 icp = (struct icmp *)(buf + hlen); in check_reply() 1058 hlen -= sizeof (struct ip); in check_reply() 1061 if (verbose && hlen > 0) in check_reply() 1062 pr_options((uchar_t *)buf, hlen); in check_reply()
|
/titanic_41/usr/src/cmd/ssh/sftp-server/ |
H A D | sftp-server.c | 238 handle_from_string(const char *handle, u_int hlen) in handle_from_string() argument 242 if (hlen != sizeof(int32_t)) in handle_from_string() 356 u_int hlen; in get_handle() local 358 handle = get_string(&hlen); in get_handle() 359 if (hlen < 256) in get_handle() 360 val = handle_from_string(handle, hlen); in get_handle() 439 int hlen; in send_handle() local 441 handle_to_string(handle, &string, &hlen); in send_handle() 443 send_data_or_handle(SSH2_FXP_HANDLE, id, string, hlen); in send_handle()
|
/titanic_41/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 144 int hlen, ip_len, tcp_hdr_len, tcp_data_len; in myri10ge_lro_rx() local 222 hlen = ip_len + ETHERNET_HEADER_SIZE - tcp_data_len; in myri10ge_lro_rx() 293 m_head->b_rptr += hlen; in myri10ge_lro_rx()
|
/titanic_41/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);
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
H A D | in.rdisc.c | 768 int hlen; in pr_pack() local 772 hlen = ip->ip_hl << 2; in pr_pack() 773 if (cc < hlen + ICMP_MINLEN) { in pr_pack() 780 cc -= hlen; in pr_pack() 781 icp = (struct icmp *)ALIGN(buf + hlen); in pr_pack() 819 pr_hex(buf+hlen, cc); in pr_pack() 822 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack() 887 ALIGN(buf + hlen + ICMP_MINLEN + in pr_pack() 925 pr_hex(buf+hlen, cc); in pr_pack() 928 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack()
|
/titanic_41/usr/src/lib/libdhcputil/common/ |
H A D | dhcp_inittab.c | 550 int hlen = 0; in inittab_encode_e() local 613 hlen = ie->ds_dhcpv6 ? sizeof (*d6o) : 2; in inittab_encode_e() 616 if (hlen + length > 0) in inittab_encode_e() 617 result = malloc(hlen + length); in inittab_encode_e() 620 optstart += hlen; in inittab_encode_e() 746 length = (optstart - result) - hlen; in inittab_encode_e() 991 *lengthp = length + hlen; in inittab_encode_e()
|