/illumos-gate/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, cle local [all...] |
/illumos-gate/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; [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 66 int olen = len; local 92 return (olen); 110 return (olen); 160 return (olen); 173 return (olen); 185 return (olen); 561 nest_options(const uint8_t *data, uint_t olen, char *prefix, char *title) argument 565 if (olen <= 0) 577 show_options(data, olen); 587 uint_t olen, retle local [all...] |
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 556 int remlen, olen, oval, delta; local 587 olen = fptr[IPOPT_OLEN]; 588 if (olen < 2 || olen > remlen) 594 fptr += olen; 595 remlen -= olen; 602 ovbcopy(fptr, tptr, olen); 603 fptr += olen; 604 tptr += olen; 605 remlen -= olen; 644 int oval, olen; local [all...] |
/illumos-gate/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...] |
/illumos-gate/usr/src/common/net/dhcp/ |
H A D | scan.c | 198 uint_t olen; local 204 olen = ntohs(d6o.d6o_len) + sizeof (d6o); 205 if (olen > buflen) 209 bp += olen; 210 buflen -= olen; 214 *retlenp = olen;
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_item.cc | 96 item::equal(char* other, int olen, bool_t casein) argument 99 return ((len == olen) && (!strncasecmp(value, other, len))); 101 return ((len == olen) && (!memcmp(value, other, len)));
|
H A D | ldap_util.c | 674 int olen = 0; local 693 ostr[olen++] = ' '; 698 ostr[olen++] = str[i]; 702 if (olen && ostr[olen - 1] == ' ') { 703 olen--; 704 ostr[olen] = 0; 710 *len = olen;
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | request.c | 103 uint_t olen; local 105 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_UNICAST, &olen); 106 olen -= sizeof (*d6o); 110 } else if (olen != sizeof (dsmp->dsm_server)) { 117 (void) memcpy(&addr, d6o + 1, olen); 251 uint_t olen, msglen; local 255 &olen); 256 (void) dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); 365 uint_t olen, solen; local 385 d6o = dhcpv6_pkt_option(pkt, NULL, DHCPV6_OPT_STATUS_CODE, &olen); 699 uint_t olen; local [all...] |
H A D | init_reboot.c | 126 uint_t olen, solen; local 143 &olen)) != NULL) { 151 if (olen < sizeof (dhcpv6_ia_na_t)) 166 olen -= sizeof (dhcpv6_ia_na_t); 168 while ((d6so = dhcpv6_find_option(obase, olen, d6so,
|
H A D | packet.c | 501 int olen; local 522 olen = ntohs(d6o.d6o_len); 523 optend = (uchar_t *)(parentopt + 1) + olen; 524 olen += req_len; 525 d6o.d6o_len = htons(olen); 643 uint_t olen; local 662 &olen)) != NULL) { 663 if (olen < sizeof (d6in)) 712 olen = sizeof (*statusopt) + 714 statusopt = alloca(olen); [all...] |
/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/cmd/ipf/lib/common/ |
H A D | addipopt.c | 18 int olen = len; local 64 return len - olen;
|
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));
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 360 int len, olen, cont; local 391 olen = 0; 406 if (!(linep = malloc(olen + len + 1))){ 407 if (olen > 0) 415 if (olen > 0) { 416 memcpy(linep, olinep, olen); 419 memcpy(linep + olen, pos, len); 420 olen += len; 421 *(linep + olen) = '\0';
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 485 int olen, nlen; local 507 olen = extract_format(torg, ofmt, osz, 0); 509 if (olen == -1) 532 if (strict && (olen != nlen || olen == -1)) { 556 if (off >= olen * FORMAT_SIZE ||
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_lofs.c | 261 int olen = sizeof (MNTOPT_RO) - 1; local 272 (cp[olen] == '\0' || cp[olen] == ',')) {
|
/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) argument 164 if (olen >= 0) { 165 if (str.ic_len > olen && verbose > 1) { 167 "%d > %d\n"), myname, iocname, str.ic_len, olen); local 168 } else if (str.ic_len < olen) { 170 "bytes, got %d\n"), myname, iocname, olen,
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 348 size_t olen = 0, nlen = 0, _len; local 357 while ((olen < *len) && (nlen < PATH_MAX)) { 360 if ((*optr != '$') || ((olen - *len) == 1)) { 372 olen++, optr++; 396 olen++, optr++; 418 olen += MSG_TKN_ORIGIN_SIZE; 455 olen += MSG_TKN_PLATFORM_SIZE; 492 olen += MSG_TKN_MACHINE_SIZE; 520 olen += MSG_TKN_OSNAME_SIZE; 548 olen 1039 size_t len, olen; local [all...] |
/illumos-gate/usr/src/common/smbclnt/ |
H A D | smbfs_ntacl.h | 156 char *obuf, size_t olen, uint32_t *ridp);
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 305 int olen; local 435 olen = 0; 466 olen += wspace; 467 wspace = maxolen - olen; 501 olen += wspace - state->strm.avail_out; 507 if (olen < orig_len && m != NULL) { 508 state->stats.comp_bytes += olen; 519 olen = orig_len; 525 return (olen); 776 int olen; local [all...] |
H A D | bsd-comp.c | 574 int olen; local 599 ++olen; \ 680 for (olen = maxolen; olen > 0; ) { 682 m = allocb((olen < 4096? olen: 4096), BPRI_MED); 693 olen -= m->b_datap->db_lim - m->b_wptr; 702 olen = 0; 833 olen += (32-bitno+7)/8; /* count complete bytes */ 835 db->bytes_out += olen; [all...] |
/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 [all...] |
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 218 size_t olen, rlen; local 279 olen = len; 359 (void) snprintf(optr, olen, "%s", prom_path); 360 olen -= strlen(optr) + 1; 361 if (olen > 0) /* drop paths we can't store */
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | common.h | 65 extern int strioctl(int fd, int cmd, void *ptr, int ilen, int olen);
|