Searched defs:optlen (Results 1 - 25 of 81) sorted by relevance

1234

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dgetsubopt.c43 register int i, optlen; local
57 optlen = strlen(s);
60 optlen = p - s;
64 if ((optlen == strlen(tokens[i])) &&
65 (strncmp(s, tokens[i], optlen) == 0))
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetsockopt.c34 getsockopt(int s, int level, int optname, char *optval, int *optlen) argument
37 if ((a = _getsockopt(s, level, optname, optval, optlen)) == -1)
H A Dsetsockopt.c47 setsockopt(int s, int level, int optname, char *optval, int optlen) argument
63 if (optlen == sizeof (int)) {
108 if ((a = _setsockopt(s, level, optname, optval, optlen)) == -1)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetsubopt.c48 size_t optlen; local
62 optlen = strlen(s);
65 optlen = p - s;
69 if ((optlen == strlen(tokens[i])) &&
70 (strncmp(s, tokens[i], optlen) == 0))
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_koptmgmt.c73 t_scalar_t optlen; local
81 optlen = req->opt.len;
82 if (optlen > 0) {
85 if (optlen < (t_scalar_t)sizeof (struct T_opthdr)) {
90 if (optlen > 4096) {
95 ctlsize = sizeof (*opt_req) + optlen;
102 opt_req->OPT_length = optlen;
104 if (optlen > 0) {
106 bcopy(req->opt.buf, opt_data, optlen);
/illumos-gate/usr/src/lib/libwrap/
H A Dfix_options.c52 int optlen; local
88 for (cp = optbuf + ADDR_LEN; cp < optbuf + optsize; cp += optlen) {
100 optlen = 1;
102 optlen = cp[IPOPT_OLEN];
103 if (optlen <= 0) /* Do not loop! */
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getsockname.c118 int sock, int level, int optname, void *optval, int *optlen)
126 return (_so_getsockopt(sock, level, optname, optval, optlen));
154 adp->arg_size = optlen == NULL ? 0 : *optlen;
156 adp++; /* optlen argument */
158 adp->arg_object = optlen;
161 adp->arg_size = sizeof (*optlen);
117 pr_getsockopt(struct ps_prochandle *Pr, int sock, int level, int optname, void *optval, int *optlen) argument
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_optmgmt.c76 t_scalar_t optlen; local
105 * effective option length in local variable "optlen"
111 optlen = req->opt.len;
113 if (_T_IS_XTI(api_semantics) && (optlen > 0)) {
120 optlen < (t_scalar_t)sizeof (struct t_opthdr)) {
150 optlen);
217 optlen = (t_scalar_t)((uchar_t *)
232 optreq->OPT_length = optlen;
237 if (optlen) {
238 if (_t_aligned_copy(&ctlbuf, optlen, siz
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtrace.c87 int optlen; local
92 optlen = opt->nd_opt_len * 8;
93 if (optlen == 0) {
100 if (optlen != sizeof (*po) ||
101 optlen > len)
123 if (optlen != sizeof (*mo) ||
124 optlen > len)
131 if (optlen < 8 ||
132 optlen > len)
136 optlen
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_init.c93 size_t optlen; local
97 optlen = sizeof (sctp_parm_hdr_t);
103 return (optlen);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tcp.c224 print_tcpoptions(opt, optlen)
226 int optlen;
234 if (optlen <= 0) {
241 "Options: (%d bytes)", optlen); local
243 while (optlen > 0) {
264 if (optlen < TCPOPT_TSTAMP_LEN) {
290 end_opt = opt + optlen;
330 optlen -= len;
339 print_tcpoptions_summary(uchar_t *opt, int optlen, char *line) argument
347 if (optlen <
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_connects.c327 ISC_SOCKLEN_T optlen; local
337 optlen = sizeof socket_errno;
340 &optlen) < 0)
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c89 int optlen = 0; local
99 optlen = 8 + gw_count * sizeof (struct in_addr);
110 * LBNL bug fixed: missing '- optlen' before, causing optlen
118 outip->ip_len = htons(plen - optlen);
137 htons((ushort_t)(plen - (sizeof (struct ip) + optlen)));
204 int optlen = 0; local
218 optlen = 8 + gw_count * sizeof (struct in_addr);
222 send_size = packlen - optlen;
224 send_size = packlen - optlen
[all...]
H A Dtraceroute_aux6.c81 int optlen = 0; local
91 optlen = sizeof (struct ip6_rthdr0) +
111 (sizeof (struct ip6_hdr) + optlen)));
309 int optlen = 0; local
315 optlen = sizeof (struct ip6_rthdr0) +
319 send_size = packlen - sizeof (struct ip6_hdr) - optlen;
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsock_notsupp.c95 int option_name, const void *optval, socklen_t optlen, struct cred *cr)
94 sock_setsockopt_notsupp(sock_lower_handle_t handle, int level, int option_name, const void *optval, socklen_t optlen, struct cred *cr) argument
H A Dsockcommon.c300 const void *optval, t_uscalar_t optlen, cred_t *cr)
305 /* If optval is null optlen is 0, and vice-versa */
306 ASSERT(optval != NULL || optlen == 0);
307 ASSERT(optlen != 0 || optval == NULL);
309 if (optval == NULL && optlen == 0)
312 return (SOP_SETSOCKOPT(so, level, option_name, optval, optlen, cr));
299 socket_setsockopt(struct sonode *so, int level, int option_name, const void *optval, t_uscalar_t optlen, cred_t *cr) argument
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksctpsubr.c222 int optlen = 0; local
236 optlen += ROUNDUP_cmsglen(ocmsg->cmsg_len);
245 msg->msg_control = kmem_zalloc(optlen, KM_SLEEP);
246 msg->msg_controllen = optlen;
248 ASSERT(optlen == len);
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Drpc.c220 socklen_t optlen; local
245 optlen = sizeof (timeout);
247 &optlen);
H A Dmount.c500 size_t optlen; local
514 optlen = strlen(s);
517 optlen = p - s;
521 if ((optlen == strlen(tokens[i])) &&
522 (strncmp(s, tokens[i], optlen) == 0))
/illumos-gate/usr/src/lib/libsocket/socket/
H A Dweaks.c170 _getsockopt(int sock, int level, int optname, char *optval, int *optlen) argument
174 socklen_t len = *optlen;
204 *optlen = sopt.sopt_len;
208 return (_so_getsockopt(sock, level, optname, optval, optlen,
214 _setsockopt(int sock, int level, int optname, char *optval, int optlen) argument
216 return (_so_setsockopt(sock, level, optname, optval, optlen,
/illumos-gate/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c98 uint_t optlen; local
102 optlen = ((sizeof (struct nd_opt_hdr) +
104 llap->nd_opt_lla_len = optlen / 8;
109 iov->iov_len = optlen;
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c270 rdsv3_get_mr(struct rdsv3_sock *rs, const void *optval, int optlen) argument
274 if (optlen != sizeof (struct rds_get_mr_args))
281 if (ddi_copyin(optval, &args, optlen, 0))
290 int optlen)
295 if (optlen != sizeof (struct rds_get_mr_for_dest_args))
302 if (ddi_copyin(optval, &args, optlen, 0))
322 rdsv3_free_mr(struct rdsv3_sock *rs, const void *optval, int optlen) argument
327 if (optlen != sizeof (struct rds_free_mr_args))
289 rdsv3_get_mr_for_dest(struct rdsv3_sock *rs, const void *optval, int optlen) argument
/illumos-gate/usr/src/uts/common/os/
H A Dsubr.c229 size_t optlen; local
243 optlen = strlen(s);
246 optlen = p - s;
250 if ((optlen == strlen(tokens[i])) &&
251 (strncmp(s, tokens[i], optlen) == 0))
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dtlx.c258 socklen_t optlen)
266 if (optlen > sizeof (optbuf.data)) {
273 optbuf.sockopt.len = optlen;
274 (void) memcpy(optbuf.data, optval, optlen);
276 request.opt.len = sizeof (struct opthdr) + optlen;
280 reply.opt.maxlen = sizeof (struct opthdr) + optlen;
257 tlx_setsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen) argument
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dksocket.c512 int optlen, struct cred *cr)
521 optlen = 0;
523 if (setsockopt(KSTOSO(ks), level, optname, optval, optlen) != 0)
511 ksocket_setsockopt(ksocket_t ks, int level, int optname, const void *optval, int optlen, struct cred *cr) argument

Completed in 286 milliseconds

1234