Home
last modified time | relevance | path

Searched refs:optval (Results 1 – 25 of 76) sorted by relevance

1234

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbindresvport.c60 int optval, len; in bindresvport() local
73 len = sizeof (optval); in bindresvport()
74 if (getsockopt(sd, SOL_SOCKET, SO_TYPE, &optval, &len) < 0) { in bindresvport()
81 if (optval == SOCK_STREAM) { in bindresvport()
84 } else if (optval == SOCK_DGRAM) { in bindresvport()
92 optval = 1; in bindresvport()
93 if (setsockopt(sd, level, optname, &optval, sizeof (optval)) < 0) { in bindresvport()
106 optval = 0; in bindresvport()
107 (void) setsockopt(sd, level, optname, &optval, sizeof (optval)); in bindresvport()
/illumos-gate/usr/src/cmd/idmap/nltest/
H A Dnltest.c85 cmd_dclist(char *optval) in cmd_dclist() argument
103 cmd_dcname(char *optval) in cmd_dcname() argument
121 cmd_dsgetdc(char *optval) in cmd_dsgetdc() argument
251 char *optval = NULL; in main() local
261 optval = NULL; in main()
273 optval = p; in main()
284 optval = p; in main()
300 if (optval == NULL && optind < argc) in main()
301 optval = argv[optind++]; in main()
303 if (optval == NULL && cmd->optreq > 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/rcap/rcapadm/
H A Drcapadm.c184 char *subopts, *optval; in main() local
219 &optval)) { in main()
221 if (optval == NULL || in main()
223 xatoi(optval)) <= 0) in main()
227 if (optval == NULL || in main()
229 xatoi(optval)) <= 0) in main()
233 if (optval == NULL || in main()
235 xatoi(optval)) < 0) in main()
239 if (optval == NULL || in main()
241 xatoi(optval)) < 0) in main()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_trace.c118 char optval[100]; in get_environment() local
139 (void) strncpy(optval, base, p - base); in get_environment()
140 optval[p - base] = '\0'; in get_environment()
142 optval[0] = '\0'; in get_environment()
144 set_option(optname, optval); in get_environment()
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Daf_rds.c491 int value = *optval; in rdsv3_set_bool_option()
534 ret = rdsv3_get_mr(rs, optval, optlen); in rdsv3_setsockopt()
537 ret = rdsv3_get_mr_for_dest(rs, optval, optlen); in rdsv3_setsockopt()
540 ret = rdsv3_free_mr(rs, optval, optlen); in rdsv3_setsockopt()
544 (char *)optval, optlen); in rdsv3_setsockopt()
547 ret = rdsv3_cong_monitor(rs, (char *)optval, optlen); in rdsv3_setsockopt()
550 sk->sk_sndbuf = *(uint_t *)optval; in rdsv3_setsockopt()
553 sk->sk_rcvbuf = *(uint_t *)optval; in rdsv3_setsockopt()
584 *((int *)optval) = sk->sk_sndbuf; in rdsv3_getsockopt()
592 *((int *)optval) = sk->sk_rcvbuf; in rdsv3_getsockopt()
[all …]
H A Dinfo.c111 rdsv3_info_ioctl(struct rsock *sock, int optname, char *optval, in rdsv3_info_ioctl() argument
127 if (optval == NULL) { in rdsv3_info_ioctl()
131 if (ddi_copyin(optval, &arg, sizeof (struct rds_info_arg), 0) != 0) { in rdsv3_info_ioctl()
133 "ddi_copyin for address: 0x%p failed", optval); in rdsv3_info_ioctl()
H A Drdma.c270 rdsv3_get_mr(struct rdsv3_sock *rs, const void *optval, int optlen) in rdsv3_get_mr() argument
278 bcopy((struct rds_get_mr_args *)optval, &args, in rdsv3_get_mr()
281 if (ddi_copyin(optval, &args, optlen, 0)) in rdsv3_get_mr()
289 rdsv3_get_mr_for_dest(struct rdsv3_sock *rs, const void *optval, in rdsv3_get_mr_for_dest() argument
299 bcopy((struct rds_get_mr_for_dest_args *)optval, &args, in rdsv3_get_mr_for_dest()
302 if (ddi_copyin(optval, &args, optlen, 0)) in rdsv3_get_mr_for_dest()
322 rdsv3_free_mr(struct rdsv3_sock *rs, const void *optval, int optlen) in rdsv3_free_mr() argument
331 bcopy((struct rds_free_mr_args *)optval, &args, in rdsv3_free_mr()
334 if (ddi_copyin((struct rds_free_mr_args *)optval, &args, in rdsv3_free_mr()
/illumos-gate/usr/src/lib/libsocket/socket/
H A Dweaks.c170 _getsockopt(int sock, int level, int optname, char *optval, int *optlen) in _getsockopt() argument
189 bcopy(optval, &id, sizeof (id)); in _getsockopt()
193 optval)->sinfo_assoc_id, &id, sizeof (id)); in _getsockopt()
199 sopt.sopt_val = optval; in _getsockopt()
208 return (_so_getsockopt(sock, level, optname, optval, optlen, in _getsockopt()
214 _setsockopt(int sock, int level, int optname, char *optval, socklen_t optlen) in _setsockopt() argument
216 return (_so_setsockopt(sock, level, optname, optval, optlen, in _setsockopt()
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Doptvalue.c23 u_32_t getoptbyvalue(optval) in getoptbyvalue() argument
24 int optval; in getoptbyvalue()
29 if (io->on_value == optval)
H A Dv6optvalue.c26 u_32_t getv6optbyvalue(optval) in getv6optbyvalue() argument
27 int optval; in getv6optbyvalue()
33 if (io->on_value == optval)
/illumos-gate/usr/src/common/cmdparse/
H A Dcmdparse.c554 cmdOptions[i].optval = opt; in cmdParse()
590 if (cmdOptions[0].optval != 0) { /* options were input */ in cmdParse()
597 for (i = 0; cmdOptions[i].optval; i++) { in cmdParse()
599 if (!(strchr(availOptions, cmdOptions[i].optval))) { in cmdParse()
601 cmdOptions[i].optval, in cmdParse()
608 cmdOptions[i].optval))) { in cmdParse()
611 } else if (cmdOptions[1].optval != 0 && in cmdParse()
614 cmdOptions[i].optval)) { in cmdParse()
616 commandName, cmdOptions[i].optval, in cmdParse()
/illumos-gate/usr/src/cmd/stmfadm/
H A Dstmfadm.c271 switch (options->optval) { in addHostGroupMemberFunc()
359 switch (options->optval) { in addTargetGroupMemberFunc()
629 switch (options->optval) { in addViewFunc()
828 switch (options->optval) { in createLuFunc()
976 switch (options->optval) { in modifyLuFunc()
1010 switch (options->optval) { in modifyLuFunc()
1339 switch (options->optval) { in deleteLuFunc()
1662 switch (options->optval) { in listHostGroupFunc()
1793 switch (options->optval) { in listTargetGroupFunc()
2687 switch (options->optval) { in listViewFunc()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsadm/
H A Dcmdparse.c545 cmdOptions[i].optval = opt; in cmdParse()
576 if (cmdOptions[0].optval != 0) { /* options were input */ in cmdParse()
583 for (i = 0; cmdOptions[i].optval; i++) { in cmdParse()
585 if (!(strchr(availOptions, cmdOptions[i].optval))) { in cmdParse()
587 cmdOptions[i].optval, in cmdParse()
593 } else if (cmdOptions[1].optval != 0 && in cmdParse()
596 cmdOptions[i].optval)) { in cmdParse()
598 commandName, cmdOptions[i].optval, in cmdParse()
/illumos-gate/usr/src/cmd/fcinfo/
H A Dfcoeadm.c120 for (; options->optval; options++) { in fcoe_adm_create_port()
121 switch (options->optval) { in fcoe_adm_create_port()
156 options->optval); in fcoe_adm_create_port()
380 for (; options->optval; options++) { in fcoe_adm_list_ports()
381 switch (options->optval) { in fcoe_adm_list_ports()
392 options->optval); in fcoe_adm_list_ports()
H A Dfcinfo-list.c618 for (; options->optval; options++) { in fc_util_list_remoteport()
619 if (options->optval == 'p') { in fc_util_list_remoteport()
622 } else if (options->optval == 's') { in fc_util_list_remoteport()
624 } else if (options->optval == 'l') { in fc_util_list_remoteport()
628 options->optval); in fc_util_list_remoteport()
736 for (; options->optval; options++) { in fc_util_list_hbaport()
737 if (options->optval == 'l') { in fc_util_list_hbaport()
739 } else if (options->optval == 'i') { in fc_util_list_hbaport()
741 } else if (options->optval == 't') { in fc_util_list_hbaport()
1274 for (; options->optval; options++) { in fc_util_list_logicalunit()
[all …]
/illumos-gate/usr/src/cmd/sbdadm/
H A Dsbdadm.c111 for (; options->optval; options++) { in create_lu()
112 switch (options->optval) { in create_lu()
118 cmdName, options->optval, in create_lu()
126 cmdName, options->optval, in create_lu()
299 for (; options->optval; options++) { in delete_lu()
300 switch (options->optval) { in delete_lu()
307 cmdName, options->optval, in delete_lu()
451 for (; options->optval; options++) { in modify_lu()
452 switch (options->optval) { in modify_lu()
462 cmdName, options->optval, in modify_lu()
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket.c203 *(int *)optval = in getsockopt()
212 *(int *)optval = in getsockopt()
221 *(int *)optval = sockets[i].so_rcvbuf; in getsockopt()
229 *(int *)optval = sockets[i].so_sndbuf; in getsockopt()
324 if (*(int *)optval) in setsockopt()
334 if (*(int *)optval) in setsockopt()
344 sockets[i].so_rcvbuf = *(int *)optval; in setsockopt()
348 level, option, optval, optlen); in setsockopt()
355 sockets[i].so_sndbuf = *(int *)optval; in setsockopt()
359 level, option, optval, optlen); in setsockopt()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Drdma.h87 int rdsv3_get_mr(struct rdsv3_sock *rs, const void *optval, int optlen);
88 int rdsv3_get_mr_for_dest(struct rdsv3_sock *rs, const void *optval,
90 int rdsv3_free_mr(struct rdsv3_sock *rs, const void *optval, int optlen);
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsockmod_pfp.c676 *((int32_t *)optval) = ps->ps_rcvbuf; in sdpfp_getsockopt()
1196 void *optval, socklen_t *optlenp) in pfp_getpacket_sockopt() argument
1211 bcopy(&ps->ps_stats, optval, sizeof (ps->ps_stats)); in pfp_getpacket_sockopt()
1221 bcopy(&tpss, optval, sizeof (tpss)); in pfp_getpacket_sockopt()
1245 const void *optval, socklen_t optlen) in pfp_setpacket_sockopt() argument
1260 bcopy(optval, &mreq, sizeof (mreq)); in pfp_setpacket_sockopt()
1312 opt = *(int *)optval; in pfp_setpacket_sockopt()
1336 const void *optval, socklen_t optlen) in pfp_setsocket_sockopt() argument
1353 bcopy(optval, &prog32, sizeof (prog32)); in pfp_setsocket_sockopt()
1359 bcopy(optval, &prog, sizeof (prog)); in pfp_setsocket_sockopt()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon.c289 void *optval, socklen_t *optlenp, int flags, cred_t *cr) in socket_getsockopt() argument
291 return (SOP_GETSOCKOPT(so, level, option_name, optval, in socket_getsockopt()
300 const void *optval, t_uscalar_t optlen, cred_t *cr) in socket_setsockopt() argument
304 ASSERT(((uintptr_t)optval & (sizeof (t_scalar_t) - 1)) == 0); in socket_setsockopt()
306 ASSERT(optval != NULL || optlen == 0); in socket_setsockopt()
307 ASSERT(optlen != 0 || optval == NULL); in socket_setsockopt()
309 if (optval == NULL && optlen == 0) in socket_setsockopt()
310 optval = &val; in socket_setsockopt()
312 return (SOP_SETSOCKOPT(so, level, option_name, optval, optlen, cr)); in socket_setsockopt()
H A Dsockcommon_sops.c733 bzero(optval, sizeof (struct linger)); in so_getsockopt()
744 bzero(optval, sizeof (struct timeval)); in so_getsockopt()
754 bzero(optval, in so_getsockopt()
770 *((int32_t *)optval) = 0; in so_getsockopt()
786 const void *optval, socklen_t optlen, struct cred *cr) in so_setsockopt() argument
790 const void *opt = optval; in so_setsockopt()
793 return (sof_setsockopt(so, option_name, optval, optlen, cr)); in so_setsockopt()
808 (void *)optval, &optlen, cr)) >= 0) in so_setsockopt()
829 bcopy((struct timeval *)optval, &tl, in so_setsockopt()
837 (struct timeval32 *)optval); in so_setsockopt()
[all …]
/illumos-gate/usr/src/cmd/iscsiadm/
H A Dcmdparse.c808 cmdOptions[i].optval = opt; in cmdParse()
840 if (cmdOptions[0].optval != 0) { /* options were input */ in cmdParse()
847 for (i = 0; cmdOptions[i].optval; i++) { in cmdParse()
860 cmdOptions[i].optval))) { in cmdParse()
863 commandName, cmdOptions[i].optval, in cmdParse()
870 } else if (cmdOptions[1].optval != 0 && in cmdParse()
874 cmdOptions[i].optval)) { in cmdParse()
879 commandName, cmdOptions[i].optval, in cmdParse()
/illumos-gate/usr/src/cmd/mpathadm/
H A Dcmdparse.c803 cmdOptions[i].optval = opt; in cmdParse()
834 if (cmdOptions[0].optval != 0) { /* options were input */ in cmdParse()
841 for (i = 0; cmdOptions[i].optval; i++) { in cmdParse()
854 cmdOptions[i].optval))) { in cmdParse()
857 commandName, cmdOptions[i].optval, in cmdParse()
864 } else if (cmdOptions[1].optval != 0 && in cmdParse()
867 cmdOptions[i].optval)) { in cmdParse()
870 commandName, cmdOptions[i].optval, in cmdParse()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c351 char *cp, *optname, *optval; in print_options() local
367 if ((optval = next_field(optname, endopts)) == NULL) { in print_options()
376 if ((opts = next_field(optval, endopts)) == NULL) { in print_options()
380 (void) fprintf(stream, "=%s", optval); in print_options()
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getsockname.c118 int sock, int level, int optname, void *optval, int *optlen) in pr_getsockopt() argument
126 return (_so_getsockopt(sock, level, optname, optval, optlen)); in pr_getsockopt()
151 adp->arg_object = optval; in pr_getsockopt()

1234