Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 71) sorted by relevance

123

/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcpv6.c66 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_44/usr/src/uts/common/inet/ipf/
H A Dmisc.c36 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_44/usr/src/cmd/sendmail/libsm/
H A Dutil.c148 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_44/usr/src/uts/common/inet/ip/
H A Dtn_ipopt.c556 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_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Drequest.c103 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 Dinit_reboot.c126 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 Dbound.c655 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_44/usr/src/cmd/ssh/libssh/common/
H A Drsa.c75 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 Dg11n.c770 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_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dcbcp.c228 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 Dlcp.c2506 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_44/usr/src/common/net/dhcp/
H A Dscan.c198 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_44/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c348 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_44/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c234 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_44/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c360 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_44/usr/src/uts/common/io/ppp/spppcomp/
H A Ddeflate.c305 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 Dbsd-comp.c574 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_44/usr/src/lib/libnisdb/
H A Ddb_item.cc96 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 Dldap_util.c674 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_44/usr/src/cmd/cmd-inet/usr.sbin/sppptun/
H A Dsppptun.c150 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_44/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c485 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_44/usr/src/cmd/ipf/tools/
H A Dipfs.c113 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_44/usr/src/uts/common/io/
H A Dtl.c2808 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_44/usr/src/cmd/ipf/lib/common/
H A Dipft_tx.c314 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));
H A Daddipopt.c18 int olen = len; local
64 return len - olen;

123