Searched defs:optlen (Results 1 - 25 of 78) 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/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/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/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/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...]
H A Dsnoop_dhcpv6.c70 uint_t optlen; local
127 DHCPV6_OPT_STATUS_CODE, &optlen);
128 optlen -= sizeof (*d6o);
129 if (d6o != NULL && optlen >= sizeof (statuscode)) {
134 optlen -= sizeof (statuscode);
135 if (optlen > 0) {
138 optlen, (char *)(d6o + 1) + 2);
142 DHCPV6_OPT_RELAY_MSG, &optlen);
143 optlen -= sizeof (*d6o);
144 if (d6o != NULL && optlen >
[all...]
/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/lib/libresolv2/common/isc/
H A Dev_connects.c333 ISC_SOCKLEN_T optlen; local
343 optlen = sizeof socket_errno;
346 &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.c299 const void *optval, t_uscalar_t optlen, cred_t *cr)
304 /* If optval is null optlen is 0, and vice-versa */
305 ASSERT(optval != NULL || optlen == 0);
306 ASSERT(optlen != 0 || optval == NULL);
308 if (optval == NULL && optlen == 0)
311 return (SOP_SETSOCKOPT(so, level, option_name, optval, optlen, cr));
298 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);
/illumos-gate/usr/src/uts/common/os/
H A Dsubr.c225 size_t optlen; local
239 optlen = strlen(s);
242 optlen = p - s;
246 if ((optlen == strlen(tokens[i])) &&
247 (strncmp(s, tokens[i], optlen) == 0))
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c269 rdsv3_get_mr(struct rdsv3_sock *rs, const void *optval, int optlen) argument
273 if (optlen != sizeof (struct rds_get_mr_args))
280 if (ddi_copyin(optval, &args, optlen, 0))
289 int optlen)
294 if (optlen != sizeof (struct rds_get_mr_for_dest_args))
301 if (ddi_copyin(optval, &args, optlen, 0))
321 rdsv3_free_mr(struct rdsv3_sock *rs, const void *optval, int optlen) argument
326 if (optlen != sizeof (struct rds_free_mr_args))
288 rdsv3_get_mr_for_dest(struct rdsv3_sock *rs, const void *optval, int optlen) argument
/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/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/cmd/cvcd/sparc/sun4u/starcat/
H A Dcvcd.c494 int optlen = sizeof (optval); local
511 err = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, optlen);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dccp.c1269 int optlen, clen; local
1305 optlen = clen;
1307 if (optlen > len)
1308 optlen = len;
1309 if (optlen < 2)
1310 optlen = 2;
1311 len -= optlen;
1312 optend = p + optlen - 2;
1320 if (optlen >= CILEN_DEFLATE) {
1334 if (optlen >
[all...]

Completed in 80 milliseconds

1234