/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 67 int olen = len; in interpret_dhcpv6() local 93 return (olen); in interpret_dhcpv6() 111 return (olen); in interpret_dhcpv6() 161 return (olen); in interpret_dhcpv6() 174 return (olen); in interpret_dhcpv6() 186 return (olen); in interpret_dhcpv6() 566 if (olen <= 0) in nest_options() 588 uint_t olen; in show_options() local 612 olen = len; in show_options() 795 if (olen > 0) in show_options() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 41 if ((olen == mlen) || (olen < off)) { 42 off -= olen; 44 } else if (olen) { 45 off -= olen; 46 s += olen; 47 mlen -= olen; 74 if ((olen == mlen) || (olen < off)) { 75 off -= olen; 78 off -= olen; 79 s += olen; [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | util.c | 146 int bufused, olen; local 153 for (ip = ibp, olen = 1; *ip != '\0'; ip++, olen++) 157 olen++; 163 if (olen > *bsp) 165 obp = sm_malloc_x(olen); 167 *bsp = olen; 183 SM_ASSERT(bufused <= olen); 190 obp = sm_malloc_x(olen); 192 *bsp = olen; 199 SM_ASSERT(bufused < olen); [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 588 if (olen < 2 || olen > remlen) in tsol_remove_secopt() 603 fptr += olen; in tsol_remove_secopt() 604 tptr += olen; in tsol_remove_secopt() 613 olen = 4 - olen; in tsol_remove_secopt() 616 tptr += olen; in tsol_remove_secopt() 682 if (olen < 2 || olen > remlen) in tsol_prepend_option() 686 optr += olen; in tsol_prepend_option() 721 toptr += olen; in tsol_prepend_option() 725 olen++; in tsol_prepend_option() 752 ASSERT(olen >= 2 && olen <= totlen); in tsol_prepend_option() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | request.c | 104 uint_t olen; in server_unicast_option() local 107 olen -= sizeof (*d6o); in server_unicast_option() 254 uint_t olen, msglen; in dhcp_requesting() local 258 &olen); in dhcp_requesting() 369 uint_t olen, solen; in compute_points_v6() local 403 &olen)) != NULL) { in compute_points_v6() 703 uint_t olen; in accept_v6_message() local 797 &olen); in accept_v6_message() 837 &olen); in accept_v6_message() 910 &olen); in accept_v6_message() [all …]
|
H A D | init_reboot.c | 103 uint_t olen, solen; in dhcp_init_reboot_v6() local 120 &olen)) != NULL) { in dhcp_init_reboot_v6() 128 if (olen < sizeof (dhcpv6_ia_na_t)) in dhcp_init_reboot_v6() 143 olen -= sizeof (dhcpv6_ia_na_t); in dhcp_init_reboot_v6() 145 while ((d6so = dhcpv6_find_option(obase, olen, d6so, in dhcp_init_reboot_v6()
|
H A D | bound.c | 658 uint_t olen, solen, ssolen, msglen; in configure_v6_leases() local 673 &olen)) != NULL) { in configure_v6_leases() 674 if (olen < sizeof (d6in)) { in configure_v6_leases() 727 olen -= sizeof (d6in); in configure_v6_leases() 728 d6so = dhcpv6_find_option(optbase, olen, NULL, in configure_v6_leases() 779 while ((d6so = dhcpv6_find_option(optbase, olen, d6so, in configure_v6_leases() 1173 uint_t olen; in save_server_id() local 1178 olen -= sizeof (*d6o); in save_server_id() 1180 if ((dsmp->dsm_serverid = malloc(olen)) == NULL) { in save_server_id() 1183 dsmp->dsm_serveridlen = olen; in save_server_id() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | cbcp.c | 256 GETCHAR(olen, p); 258 if (olen < 2) 263 if (olen > len) { 265 olen = len; 267 len -= olen; 268 olen -= 2; 275 if (olen > 0) { 277 olen--; 281 while (olen > 0) { 283 olen--; [all …]
|
H A D | lcp.c | 2522 GETCHAR(olen, p); 2524 if (olen < 2 || olen > len) { 2528 len -= olen; 2529 optend = p + olen; 2539 if (olen >= CILEN_LONG) { 2604 if (olen >= CILEN_CHAR) { 2617 if (olen >= CILEN_LONG) { 2624 if (olen >= CILEN_VOID) { 2630 if (olen >= CILEN_VOID) { 2636 if (olen >= CILEN_CHAR) { [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/ |
H A D | t.roff | 4 if (n + olen >= 60) { 6 olen = n 10 olen += n 17 olen = 0 21 if (olen > 0)
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_utf8.c | 361 size_t olen = max_mblen; in smb_oemtombs() local 371 rc = kiconv(ic, &ibuf, &ilen, &obuf, &olen, &err); in smb_oemtombs() 379 rc = iconv(ic, &ibuf, &ilen, &obuf, &olen); in smb_oemtombs() 385 rlen = (max_mblen - olen); in smb_oemtombs() 439 size_t olen = max_oemlen; in smb_mbstooem() local 449 rc = kiconv(ic, &ibuf, &ilen, &obuf, &olen, &err); in smb_mbstooem() 457 rc = iconv(ic, &ibuf, &ilen, &obuf, &olen); in smb_mbstooem() 463 rlen = (max_oemlen - olen); in smb_mbstooem()
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 348 size_t olen = 0, nlen = 0, _len; in expand() local 372 olen++, optr++; in expand() 396 olen++, optr++; in expand() 418 olen += MSG_TKN_ORIGIN_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() 600 tlen = *len - olen; in expand() 681 olen += MSG_TKN_HWCAP_SIZE; in expand() 1040 size_t len, olen; in expand_paths() local [all …]
|
/illumos-gate/usr/src/common/net/dhcp/ |
H A D | scan.c | 196 uint_t olen; in dhcpv6_find_option() local 202 olen = ntohs(d6o.d6o_len) + sizeof (d6o); in dhcpv6_find_option() 203 if (olen > buflen) in dhcpv6_find_option() 207 bp += olen; in dhcpv6_find_option() 208 buflen -= olen; in dhcpv6_find_option() 212 *retlenp = olen; in dhcpv6_find_option()
|
/illumos-gate/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;
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 356 int len, olen, cont; in read_for_group() local 387 olen = 0; in read_for_group() 402 if (!(linep = malloc(olen + len + 1))){ in read_for_group() 403 if (olen > 0) in read_for_group() 411 if (olen > 0) { in read_for_group() 412 memcpy(linep, olinep, olen); in read_for_group() 415 memcpy(linep + olen, pos, len); in read_for_group() 416 olen += len; in read_for_group() 417 *(linep + olen) = '\0'; in read_for_group()
|
/illumos-gate/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() 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 872 olen = 0; in z_decompress() 956 olen += ospace; in z_decompress() [all …]
|
H A D | bsd-comp.c | 572 int olen; in bsd_compress() local 597 ++olen; \ in bsd_compress() 678 for (olen = maxolen; olen > 0; ) { in bsd_compress() 680 m = allocb((olen < 4096? olen: 4096), BPRI_MED); in bsd_compress() 691 olen -= m->b_datap->db_lim - m->b_wptr; in bsd_compress() 700 olen = 0; in bsd_compress() 831 olen += (32-bitno+7)/8; /* count complete bytes */ in bsd_compress() 833 db->bytes_out += olen; in bsd_compress() 859 if (wptr == NULL || olen + PPP_HDRLEN + BSD_OVHD >= maxolen) { in bsd_compress() 880 db->comp_bytes += olen + BSD_OVHD; in bsd_compress() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 483 int olen, nlen; in check_format() local 505 olen = extract_format(torg, ofmt, osz, 0); in check_format() 507 if (olen == -1) in check_format() 530 if (strict && (olen != nlen || olen == -1)) { in check_format() 555 if (off >= olen * FORMAT_SIZE || in check_format()
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_item.cc | 94 item::equal(char* other, int olen, bool_t casein) in equal() argument 97 return ((len == olen) && (!strncasecmp(value, other, len))); in equal() 99 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()
|
/illumos-gate/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)) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | tl.c | 2954 if (olen == 0) in tl_conn_req() 2981 (olen > 0 && ((ssize_t)(ooff + olen) > msz || in tl_conn_req() 3015 if (olen) { in tl_conn_req() 3168 if (olen == 0) in tl_conn_req_ser() 3486 if (((olen > 0) && ((ooff + olen) > msz))) { in tl_conn_res() 3493 if (olen) { in tl_conn_res() 3676 olen = 0; in tl_conn_res() 5012 if (olen > 0) in tl_uderr() 5143 ((olen > 0) && ((ooff + olen) > msz))) { in tl_unitdata() 5168 ((olen > 0) && ((ooff + olen) > msz)) || in tl_unitdata() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_tx.c | 312 u_long olen; local 315 olen = buildopts(*cpp, ipopts, (IP_HL(ip) - 5) << 2); 316 if (olen) { 317 bcopy(ipopts, (char *)(ip + 1), olen); 318 IP_HL_A(ip, IP_HL(ip) + (olen >> 2));
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 222 size_t olen, rlen; in i_devname_to_promname() local 282 olen = len; in i_devname_to_promname() 362 (void) snprintf(optr, olen, "%s", prom_path); in i_devname_to_promname() 363 olen -= strlen(optr) + 1; in i_devname_to_promname() 364 if (olen > 0) /* drop paths we can't store */ in i_devname_to_promname()
|