/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 66 int olen = len; in interpret_dhcpv6() local 92 return (olen); in interpret_dhcpv6() 110 return (olen); in interpret_dhcpv6() 160 return (olen); in interpret_dhcpv6() 173 return (olen); in interpret_dhcpv6() 185 return (olen); in interpret_dhcpv6() 561 nest_options(const uint8_t *data, uint_t olen, char *prefix, char *title) in nest_options() argument 565 if (olen <= 0) in nest_options() 577 show_options(data, olen); in nest_options() 587 uint_t olen, retlen; in show_options() local [all …]
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 36 size_t mlen, olen, clen; local 44 olen = min(off, mlen); 45 if ((olen == mlen) || (olen < off)) { 46 off -= olen; 48 } else if (olen) { 49 off -= olen; 50 s += olen; 51 mlen -= olen; 67 size_t mlen, olen, clen; local 77 olen = min(off, mlen); [all …]
|
/titanic_41/usr/src/cmd/sendmail/libsm/ |
H A D | util.c | 148 int bufused, olen; local 155 for (ip = ibp, olen = 1; *ip != '\0'; ip++, olen++) 159 olen++; 165 if (olen > *bsp) 167 obp = sm_malloc_x(olen); 169 *bsp = olen; 185 SM_ASSERT(bufused <= olen); 192 obp = sm_malloc_x(olen); 194 *bsp = olen; 201 SM_ASSERT(bufused < olen); [all …]
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 556 int remlen, olen, oval, delta; in tsol_remove_secopt() local 587 olen = fptr[IPOPT_OLEN]; in tsol_remove_secopt() 588 if (olen < 2 || olen > remlen) in tsol_remove_secopt() 594 fptr += olen; in tsol_remove_secopt() 595 remlen -= olen; in tsol_remove_secopt() 602 ovbcopy(fptr, tptr, olen); in tsol_remove_secopt() 603 fptr += olen; in tsol_remove_secopt() 604 tptr += olen; in tsol_remove_secopt() 605 remlen -= olen; in tsol_remove_secopt() 611 olen = (tptr - (uchar_t *)ipha) & 3; in tsol_remove_secopt() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | request.c | 103 uint_t olen; in server_unicast_option() local 105 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_UNICAST, &olen); in server_unicast_option() 106 olen -= sizeof (*d6o); in server_unicast_option() 110 } else if (olen != sizeof (dsmp->dsm_server)) { in server_unicast_option() 117 (void) memcpy(&addr, d6o + 1, olen); in server_unicast_option() 251 uint_t olen, msglen; in dhcp_requesting() local 255 &olen); in dhcp_requesting() 256 (void) dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in dhcp_requesting() 365 uint_t olen, solen; in compute_points_v6() local 385 d6o = dhcpv6_pkt_option(pkt, NULL, DHCPV6_OPT_STATUS_CODE, &olen); in compute_points_v6() [all …]
|
H A D | init_reboot.c | 126 uint_t olen, solen; in dhcp_init_reboot_v6() local 143 &olen)) != NULL) { in dhcp_init_reboot_v6() 151 if (olen < sizeof (dhcpv6_ia_na_t)) in dhcp_init_reboot_v6() 166 olen -= sizeof (dhcpv6_ia_na_t); in dhcp_init_reboot_v6() 168 while ((d6so = dhcpv6_find_option(obase, olen, d6so, in dhcp_init_reboot_v6()
|
H A D | bound.c | 655 uint_t olen, solen, ssolen, msglen; in configure_v6_leases() local 670 &olen)) != NULL) { in configure_v6_leases() 671 if (olen < sizeof (d6in)) { in configure_v6_leases() 724 olen -= sizeof (d6in); in configure_v6_leases() 725 d6so = dhcpv6_find_option(optbase, olen, NULL, in configure_v6_leases() 776 while ((d6so = dhcpv6_find_option(optbase, olen, d6so, in configure_v6_leases() 1170 uint_t olen; in save_server_id() local 1172 d6o = dhcpv6_pkt_option(msg, NULL, DHCPV6_OPT_SERVERID, &olen); in save_server_id() 1175 olen -= sizeof (*d6o); in save_server_id() 1177 if ((dsmp->dsm_serverid = malloc(olen)) == NULL) { in save_server_id() [all …]
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | rsa.c | 75 int len, ilen, olen; in rsa_public_encrypt() local 80 olen = BN_num_bytes(key->n); in rsa_public_encrypt() 81 outbuf = xmalloc(olen); in rsa_public_encrypt() 93 memset(outbuf, 0, olen); in rsa_public_encrypt() 103 int len, ilen, olen; in rsa_private_decrypt() local 105 olen = BN_num_bytes(key->n); in rsa_private_decrypt() 106 outbuf = xmalloc(olen); in rsa_private_decrypt() 118 memset(outbuf, 0, olen); in rsa_private_decrypt()
|
H A D | g11n.c | 770 int ilen, olen; in do_iconv() local 776 olen = ilen + 1; in do_iconv() 780 olen *= 2; in do_iconv() 781 oleft = olen; in do_iconv() 782 ostr = optr = xrealloc(ostr, olen); in do_iconv() 797 oleft = olen; in do_iconv() 804 olen = optr - ostr; in do_iconv() 805 optr = xmalloc(olen + 1); in do_iconv() 806 (void) memcpy(optr, ostr, olen); in do_iconv() 809 optr[olen] = '\0'; in do_iconv() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | cbcp.c | 228 int code, id, len, olen, alen; local 263 GETCHAR(olen, p); 265 if (olen < 2) 270 if (olen > len) { 271 printer(arg, "trunc[%d>%d] ", olen, len); 272 olen = len; 274 len -= olen; 275 olen -= 2; 282 if (olen > 0) { 284 olen--; [all …]
|
H A D | lcp.c | 2506 int code, id, len, olen, i; local 2530 GETCHAR(olen, p); 2532 if (olen < 2 || olen > len) { 2536 len -= olen; 2537 optend = p + olen; 2540 if (olen >= CILEN_SHORT) { 2547 if (olen >= CILEN_LONG) { 2554 if (olen >= CILEN_SHORT) { 2598 if (olen >= CILEN_SHORT) { 2612 if (olen >= CILEN_CHAR) { [all …]
|
/titanic_41/usr/src/common/net/dhcp/ |
H A D | scan.c | 198 uint_t olen; in dhcpv6_find_option() local 204 olen = ntohs(d6o.d6o_len) + sizeof (d6o); in dhcpv6_find_option() 205 if (olen > buflen) in dhcpv6_find_option() 209 bp += olen; in dhcpv6_find_option() 210 buflen -= olen; in dhcpv6_find_option() 214 *retlenp = olen; in dhcpv6_find_option()
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 348 size_t olen = 0, nlen = 0, _len; in expand() local 357 while ((olen < *len) && (nlen < PATH_MAX)) { in expand() 360 if ((*optr != '$') || ((olen - *len) == 1)) { in expand() 372 olen++, optr++; in expand() 396 olen++, optr++; in expand() 418 olen += MSG_TKN_ORIGIN_SIZE; in expand() 455 olen += MSG_TKN_PLATFORM_SIZE; in expand() 492 olen += MSG_TKN_MACHINE_SIZE; in expand() 520 olen += MSG_TKN_OSNAME_SIZE; in expand() 548 olen += MSG_TKN_OSREL_SIZE; in expand() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 234 int rlen, olen, ospace; local 274 olen = state->mru + 2 - state->strm.avail_out; 275 *outlenp = olen; 278 ++olen; /* for suppressed protocol high byte */ 279 olen += 2; /* for address, control */ 282 if (olen > state->mru + PPP_HDRLEN) 284 state->unit, olen, state->mru + PPP_HDRLEN); 287 state->stats.unc_bytes += olen;
|
/titanic_41/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 360 int len, olen, cont; in read_for_group() local 391 olen = 0; in read_for_group() 406 if (!(linep = malloc(olen + len + 1))){ in read_for_group() 407 if (olen > 0) in read_for_group() 415 if (olen > 0) { in read_for_group() 416 memcpy(linep, olinep, olen); in read_for_group() 419 memcpy(linep + olen, pos, len); in read_for_group() 420 olen += len; in read_for_group() 421 *(linep + olen) = '\0'; in read_for_group()
|
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 305 int olen; in z_compress() local 435 olen = 0; in z_compress() 466 olen += wspace; in z_compress() 467 wspace = maxolen - olen; in z_compress() 501 olen += wspace - state->strm.avail_out; in z_compress() 507 if (olen < orig_len && m != NULL) { in z_compress() 508 state->stats.comp_bytes += olen; in z_compress() 519 olen = orig_len; in z_compress() 525 return (olen); in z_compress() 776 int olen; in z_decompress() local [all …]
|
H A D | bsd-comp.c | 574 int olen; in bsd_compress() local 599 ++olen; \ in bsd_compress() 680 for (olen = maxolen; olen > 0; ) { in bsd_compress() 682 m = allocb((olen < 4096? olen: 4096), BPRI_MED); in bsd_compress() 693 olen -= m->b_datap->db_lim - m->b_wptr; in bsd_compress() 702 olen = 0; in bsd_compress() 833 olen += (32-bitno+7)/8; /* count complete bytes */ in bsd_compress() 835 db->bytes_out += olen; in bsd_compress() 861 if (wptr == NULL || olen + PPP_HDRLEN + BSD_OVHD >= maxolen) { in bsd_compress() 882 db->comp_bytes += olen + BSD_OVHD; in bsd_compress() [all …]
|
/titanic_41/usr/src/lib/libnisdb/ |
H A D | db_item.cc | 96 item::equal(char* other, int olen, bool_t casein) in equal() argument 99 return ((len == olen) && (!strncasecmp(value, other, len))); in equal() 101 return ((len == olen) && (!memcmp(value, other, len))); in equal()
|
H A D | ldap_util.c | 674 int olen = 0; in trimWhiteSpaces() local 693 ostr[olen++] = ' '; in trimWhiteSpaces() 698 ostr[olen++] = str[i]; in trimWhiteSpaces() 702 if (olen && ostr[olen - 1] == ' ') { in trimWhiteSpaces() 703 olen--; in trimWhiteSpaces() 704 ostr[olen] = 0; in trimWhiteSpaces() 710 *len = olen; in trimWhiteSpaces()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 485 int olen, nlen; in check_format() local 507 olen = extract_format(torg, ofmt, osz, 0); in check_format() 509 if (olen == -1) in check_format() 532 if (strict && (olen != nlen || olen == -1)) { in check_format() 556 if (off >= olen * FORMAT_SIZE || in check_format()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/sppptun/ |
H A D | sppptun.c | 150 strioctl(int fd, int cmd, void *ptr, int ilen, int olen, const char *iocname) in strioctl() argument 164 if (olen >= 0) { in strioctl() 165 if (str.ic_len > olen && verbose > 1) { in strioctl() 167 "%d > %d\n"), myname, iocname, str.ic_len, olen); in strioctl() 168 } else if (str.ic_len < olen) { in strioctl() 170 "bytes, got %d\n"), myname, iocname, olen, in strioctl()
|
/titanic_41/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 113 int fd, olen, nlen, rw; local 123 olen = strlen(ifs); 125 olen >= sizeof(ips.ips_is.is_ifname)) 136 if (!strncmp(ips.ips_is.is_ifname[0], ifs, olen + 1)) { 140 if (!strncmp(ips.ips_is.is_ifname[1], ifs, olen + 1)) { 168 int fd, olen, nlen, rw; local 179 olen = strlen(ifs); 182 olen >= sizeof(nat->nat_ifnames[0])) 193 if (!strncmp(nat->nat_ifnames[0], ifs, olen + 1)) { 197 if (!strncmp(nat->nat_ifnames[1], ifs, olen + 1)) {
|
/titanic_41/usr/src/uts/common/io/mac/ |
H A D | mac_protect.c | 265 uint8_t otype, olen; in get_dhcpv4_option() local 276 olen = *start++; in get_dhcpv4_option() 277 if (otype == type && olen > 0) { in get_dhcpv4_option() 279 *opt_len = olen; in get_dhcpv4_option() 282 start += olen; in get_dhcpv4_option() 841 uint_t olen; in get_dhcpv6_option() local 847 olen = ntohs(d6o.d6o_len) + sizeof (d6o); in get_dhcpv6_option() 848 if (olen > buflen) in get_dhcpv6_option() 852 bp += olen; in get_dhcpv6_option() 853 buflen -= olen; in get_dhcpv6_option() [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | tl.c | 2808 t_scalar_t alen, aoff, olen, ooff, err = 0; in tl_conn_req() local 2863 olen = creq->OPT_length; in tl_conn_req() 2865 if (olen == 0) in tl_conn_req() 2892 (olen > 0 && ((ssize_t)(ooff + olen) > msz || in tl_conn_req() 2893 ooff + olen < 0)) || in tl_conn_req() 2894 olen < 0 || ooff < 0) { in tl_conn_req() 2926 if (olen) { in tl_conn_req() 3055 t_scalar_t olen = creq->OPT_length; in tl_conn_req_ser() local 3079 if (olen == 0) in tl_conn_req_ser() 3107 olen = (t_scalar_t) sizeof (struct opthdr) + in tl_conn_req_ser() [all …]
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | ipft_tx.c | 314 u_long olen; local 317 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2); 318 if (olen) { 319 bcopy(ipopts, (char *)(ip + 1), olen); 320 IP_HL_A(ip, IP_HL(ip) + (olen >> 2));
|