Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/awk/
H A Dlib.c621 size_t cnt, len, olen; in recbld() local
627 olen = strlen(sep); in recbld()
631 expand_buf(&record, &recsize, cnt + len + olen); in recbld()
635 (void) memcpy(&record[cnt], sep, olen); in recbld()
636 cnt += olen; in recbld()
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
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 …]
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 Dpacket.c534 int olen; in add_pkt_subopt() local
555 olen = ntohs(d6o.d6o_len); in add_pkt_subopt()
557 olen += req_len; in add_pkt_subopt()
558 d6o.d6o_len = htons(olen); in add_pkt_subopt()
676 uint_t olen; in add_pkt_lif() local
695 &olen)) != NULL) { in add_pkt_lif()
696 if (olen < sizeof (d6in)) in add_pkt_lif()
745 olen = sizeof (*statusopt) + in add_pkt_lif()
747 statusopt = alloca(olen); in add_pkt_lif()
751 olen - sizeof (*statusopt)); in add_pkt_lif()
[all …]
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 Dutil.c632 dhcpv6_status_code(const dhcpv6_option_t *d6o, uint_t olen, const char **estr, in dhcpv6_status_code() argument
652 olen -= sizeof (*d6o); in dhcpv6_status_code()
653 if (olen < 2) { in dhcpv6_status_code()
659 *msglenp = olen - 2; in dhcpv6_status_code()
/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 Dipcp.c625 #define ACKCHECK(opt, olen) \ argument
626 if ((len -= olen) < 0) \
630 if (cilen != olen || \
1783 int code, id, len, olen; local
1807 GETCHAR(olen, p);
1809 if (olen < 2 || olen > len) {
1813 len -= olen;
1814 optend = p + olen;
1817 if (olen == CILEN_ADDRS) {
1826 if (olen >= CILEN_COMPRESS) {
[all …]
H A Dipv6cp.c1417 int code, id, len, olen; local
1442 GETCHAR(olen, p);
1444 if (olen < 2 || olen > len) {
1448 len -= olen;
1449 optend = p + olen;
1452 if (olen >= CILEN_COMPRESS) {
1459 if (olen == CILEN_IFACEID) {
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 …]
H A Dsys-solaris.c2857 strioctl(int fd, int cmd, void *ptr, int ilen, int olen) in strioctl() argument
2869 if (str.ic_len != olen) { in strioctl()
2871 olen, str.ic_len, cmd); in strioctl()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c65 strioctl(int fd, int cmd, void *ptr, int ilen, int olen) in strioctl() argument
77 if (str.ic_len != olen) { in strioctl()
/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/cmd/cmd-inet/usr.bin/pppstats/
H A Dpppstats.c229 strioctl(fd, cmd, ptr, ilen, olen) in strioctl() argument
230 int fd, cmd, ilen, olen; in strioctl()
241 if (str.ic_len != olen)
244 olen, str.ic_len, cmd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c121 strioctl(int fd, int cmd, void *ptr, int ilen, int olen) in strioctl() argument
133 if (str.ic_len != olen) { in strioctl()
H A Dcommon.h63 extern int strioctl(int fd, int cmd, void *ptr, int ilen, int olen);
/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 …]
H A Dsnoop_filter.c564 uint_t olen; in want_packet() local
737 len = olen; in want_packet()
860 olen = len; in want_packet()
H A Dsnoop_ldap.c77 int olen[MAX_CTX]; variable
877 olen[ctxnum] = INT(hex); /* tlv length */ in decpdu()
892 if (olen[ctxnum] < 128) { /* short length form */ in decpdu()
893 rlen = olen[ctxnum]; in decpdu()
896 for (rlen = 0, olen[ctxnum] &= 0x0F; in decpdu()
897 (olen[ctxnum]) && (pdulen > 0); in decpdu()
898 --olen[ctxnum], --pdulen, ++effnb) { in decpdu()
/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/cmd/idmap/idmapd/
H A Didmap_config.c2906 size_t ilen, olen; in idmapd_set_krb5_realm() local
2918 olen = ilen = strlen(realm); in idmapd_set_krb5_realm()
2919 (void) u8_textprep_str(realm, &ilen, realm, &olen, in idmapd_set_krb5_realm()
/illumos-gate/usr/src/cmd/ipf/lib/
H A Daddipopt.c18 int olen = len; local
64 return len - olen;
H A Dipft_tx.c312 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/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/cmd/mdb/common/mdb/
H A Dmdb_termio.c1722 size_t olen = td->tio_cmdbuf.cmd_buflen; in termio_insert() local
1726 termio_addch(td, c, td->tio_cmdbuf.cmd_buflen - olen); in termio_insert()
1728 termio_insch(td, c, td->tio_cmdbuf.cmd_buflen - olen); in termio_insert()

123