Searched refs:optname (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-11-stable/contrib/ipfilter/lib/
H A Doptvalue.c13 u_32_t getoptbyname(optname)
14 char *optname;
19 if (!strcasecmp(optname, io->on_name))
H A Dv6optvalue.c14 u_32_t getv6optbyname(optname)
15 char *optname;
21 if (!strcasecmp(optname, io->on_name))
H A Doptname.c14 u_32_t optname(cp, sp, linenum) function
/freebsd-11-stable/contrib/less/
H A Dopttbl.c75 static struct optname a_optname = { "search-skip-screen", NULL };
76 static struct optname b_optname = { "buffers", NULL };
77 static struct optname B__optname = { "auto-buffers", NULL };
78 static struct optname c_optname = { "clear-screen", NULL };
79 static struct optname d_optname = { "dumb", NULL };
80 static struct optname D__optname = { "color", NULL };
81 static struct optname e_optname = { "quit-at-eof", NULL };
82 static struct optname f_optname = { "force", NULL };
83 static struct optname F__optname = { "quit-if-one-screen", NULL };
85 static struct optname g_optnam
640 char *optname = *p_optname; local
[all...]
H A Doption.h48 struct optname struct
51 struct optname *onext; /* List of synonymous option names */
59 struct optname *onames; /* Long (GNU-style) option name */
H A Doption.c74 char *optname; local
109 optname = NULL;
128 optname = ++s;
185 if (optname == NULL)
192 printopt = optname;
193 lc = ASCII_IS_LOWER(optname[0]);
194 o = findopt_name(&optname, NULL, &err);
195 s = optname;
196 optname = NULL;
/freebsd-11-stable/crypto/heimdal/appl/ftp/common/
H A Dsockbuf.c49 int optname = read ? SO_RCVBUF : SO_SNDBUF; local
56 if(getsockopt(fd, SOL_SOCKET, optname, (void *)&curr, &optlen) == 0) {
65 setsockopt(fd, SOL_SOCKET, optname, (void *)&size, sizeof(size)) < 0)
/freebsd-11-stable/sbin/setkey/
H A Dtest-policy.c96 int so, proto, optname; local
103 optname = IP_IPSEC_POLICY;
107 optname = IPV6_IPSEC_POLICY;
114 if (setsockopt(so, proto, optname, policy, PFKEY_EXTLEN(policy)) < 0)
119 if (getsockopt(so, proto, optname, getbuf, &len) < 0)
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h46 int swrap_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen);
47 int swrap_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
92 #define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen)
97 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen)
/freebsd-11-stable/tools/regression/priv/
H A Dpriv_netinet_ipsec.c198 int error, level, optname; local
203 optname = IP_IPSEC_POLICY;
208 optname = IPV6_IPSEC_POLICY;
215 error = setsockopt(sd, level, optname,
251 int error, level, optname; local
256 optname = IP_IPSEC_POLICY;
261 optname = IPV6_IPSEC_POLICY;
268 error = setsockopt(sd, level, optname,
/freebsd-11-stable/contrib/flex/
H A Dscanopt.c539 const char *optname = "";
553 optname = optchar;
556 optname = s->argv[s->index];
566 optname);
571 optname);
575 optname);
579 optname);
594 * optname will point to str + 2
597 static int matchlongopt (str, optname, optlen, arg, arglen)
599 char **optname;
538 const char *optname = ""; local
659 char *optname; local
712 char *optname = NULL, *optarg = NULL, *pstart; local
[all...]
/freebsd-11-stable/contrib/apr/network_io/unix/
H A Dsockopt.c214 int optname = TCP_DEFER_ACCEPT; local
216 if (setsockopt(sock->socketdes, optlevel, optname,
230 int optname = TCP_NODELAY; local
235 optname = SCTP_NODELAY;
238 if (setsockopt(sock->socketdes, optlevel, optname, (void *)&on, sizeof(int)) == -1) {
266 int optname = TCP_NODELAY; local
271 optname = SCTP_NODELAY;
279 if (setsockopt(sock->socketdes, optlevel, optname,
302 if (setsockopt(sock->socketdes, optlevel, optname,
/freebsd-11-stable/sys/sys/
H A Dsockopt.h69 int so_setsockopt(struct socket *so, int level, int optname,
/freebsd-11-stable/bin/sh/
H A Doptions.h78 static const unsigned char optname[] = variable
H A Doptions.c261 for (i = 0, on = optname; i < NOPTS; i++, on += *on + 1)
266 for (i = 0, on = optname; i < NOPTS; i++, on += *on + 1)
275 for (i = 0, on = optname; i < NOPTS; i++, on += *on + 1)
/freebsd-11-stable/lib/libc/net/
H A Dsourcefilter.c282 int level, optname; local
299 optname = IP_MSFILTER;
310 optname = IPV6_MSFILTER;
325 return (_setsockopt(s, level, optname, &msfr, sizeof(msfr)));
340 int err, level, nsrcs, optname; local
362 optname = IP_MSFILTER;
373 optname = IPV6_MSFILTER;
395 err = _getsockopt(s, level, optname, &msfr, &optlen);
/freebsd-11-stable/tools/regression/netinet/msocket/
H A Dmsocket.c75 * Test that a given IP socket option (optname) has a default value of
82 test_u_char(int optname, const char *optstring, u_char defaultv, argument
96 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen);
111 ret = setsockopt(sock, IPPROTO_IP, optname, &uc, sizeof(uc));
121 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen);
138 test_in_addr(int optname, const char *optstring, struct in_addr defaultv, argument
152 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen);
168 ret = setsockopt(sock, IPPROTO_IP, optname, &ia, sizeof(ia));
178 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen);
/freebsd-11-stable/usr.sbin/mtest/
H A Dmtest.c391 int af, error, f, flags, i, level, n, optname; local
447 optname = (*cmd == 'j') ?
458 optname = (*cmd == 'j') ?
468 } else if (setsockopt(s, level, optname, optval,
487 optname = (*cmd == 'j') ?
498 optname = (*cmd == 'j') ?
510 } else if (setsockopt(s6, level, optname, optval,
640 optname = (*cmd == 't') ?
648 optname = (*cmd == 't') ?
655 if (setsockopt(s, level, optname, optva
[all...]
/freebsd-11-stable/lib/libipsec/
H A Dtest-policy.c157 int proto = 0, optname = 0; local
164 optname = IP_IPSEC_POLICY;
168 optname = IPV6_IPSEC_POLICY;
180 if (setsockopt(so, proto, optname, policy, len) < 0) {
188 if (getsockopt(so, proto, optname, getbuf, &len) < 0) {
/freebsd-11-stable/sys/netinet6/
H A Dip6_output.c1433 int level, op, optname; local
1452 optname = sopt->sopt_name;
1497 switch (optname) {
1567 if (optname == IPV6_BINDANY && td != NULL) {
1582 switch (optname) {
1783 error = ip6_pcbopt(optname,
1804 switch (optname) {
1869 error = ip6_pcbopt(optname, optbuf, optlen,
1937 switch (optname) {
1977 switch (optname) {
2176 int level, op, optname; local
2308 ip6_pcbopt(int optname, u_char *buf, int len, struct ip6_pktopts **pktopt, struct ucred *cred, int uproto) argument
2324 ip6_getpcbopt(struct ip6_pktopts *pktopt, int optname, struct sockopt *sopt) argument
2424 ip6_clearpktopts(struct ip6_pktopts *pktopt, int optname) argument
2622 ip6_setpktopt(int optname, u_char *buf, int len, struct ip6_pktopts *opt, struct ucred *cred, int sticky, int cmsg, int uproto) argument
[all...]
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Drsocket.h85 int rsetsockopt(int socket, int level, int optname,
87 int rgetsockopt(int socket, int level, int optname,
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dnet.c223 int optname; local
247 optname = IPV6_RECVPKTINFO;
249 optname = IPV6_PKTINFO;
252 if (setsockopt(s, IPPROTO_IPV6, optname, (const char *) &on,
/freebsd-11-stable/tools/regression/usr.bin/env/
H A Dregress-sb.rb331 def RGTestOptions.parse(optname, optval)
334 if not @@rgtest_opts.has_key?(optname)
336 optname
354 case optname
403 optname
409 optname, optval
/freebsd-11-stable/contrib/ntp/lib/isc/unix/
H A Dnet.c326 int optname; local
350 optname = IPV6_RECVPKTINFO;
352 optname = IPV6_PKTINFO;
355 if (setsockopt(s, IPPROTO_IPV6, optname, &on, sizeof(on)) < 0) {
/freebsd-11-stable/sbin/ipfw/
H A Dipfw2.h356 int do_cmd(int optname, void *optval, uintptr_t optlen);
357 int do_set3(int optname, struct _ip_fw3_opheader *op3, size_t optlen);
358 int do_get3(int optname, struct _ip_fw3_opheader *op3, size_t *optlen);
396 void ipfw_zero(int ac, char *av[], int optname);

Completed in 702 milliseconds

123