Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcpv6.c67 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 Dmisc.c45 if ((olen == mlen) || (olen < off)) {
46 off -= olen;
48 } else if (olen) {
49 off -= olen;
50 s += olen;
51 mlen -= olen;
78 if ((olen == mlen) || (olen < off)) {
79 off -= olen;
82 off -= olen;
83 s += olen;
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtn_ipopt.c588 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 Drequest.c104 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 Dinit_reboot.c103 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 Dbound.c658 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 Dcbcp.c256 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 Dlcp.c2522 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 Dt.roff4 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 Dsmb_utf8.c361 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 Dpaths.c348 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()
1039 size_t len, olen; in expand_paths() local
[all …]
/illumos-gate/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()
/illumos-gate/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;
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c356 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 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()
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 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 …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c483 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()
554 if (off >= olen * FORMAT_SIZE || in check_format()
/illumos-gate/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()
/illumos-gate/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)) {
/illumos-gate/usr/src/uts/common/io/
H A Dtl.c2954 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/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));
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_protect.c277 uint8_t otype, olen; in get_dhcpv4_option() local
288 olen = *start++; in get_dhcpv4_option()
291 *opt_len = olen; in get_dhcpv4_option()
294 start += olen; in get_dhcpv4_option()
910 uint_t olen; in get_dhcpv6_option() local
917 if (olen > buflen) in get_dhcpv6_option()
921 bp += olen; in get_dhcpv6_option()
922 buflen -= olen; in get_dhcpv6_option()
926 *retlenp = olen; in get_dhcpv6_option()
940 uint_t olen; in get_dhcpv6_status() local
[all …]

123