| /freebsd-13.1/contrib/less/ |
| H A D | opttbl.c | 76 static struct optname a_optname = { "search-skip-screen", NULL }; 77 static struct optname b_optname = { "buffers", NULL }; 78 static struct optname B__optname = { "auto-buffers", NULL }; 79 static struct optname c_optname = { "clear-screen", NULL }; 132 static struct optname rscroll_optname = { "rscroll", NULL }; 659 char *optname = *p_optname; local 661 struct optname *oname; 665 struct optname *maxoname = NULL; 687 len = sprefix(optname, oname->oname, uppercase); 688 if (len <= 0 || is_optchar(optname[len])) [all …]
|
| H A D | option.c | 74 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;
|
| H A D | option.h | 48 struct optname struct 51 struct optname *onext; /* List of synonymous option names */ argument 59 struct optname *onames; /* Long (GNU-style) option name */
|
| /freebsd-13.1/contrib/flex/src/ |
| H A D | scanopt.c | 502 const char *optname = ""; in scanopt_err() local 512 optname = optchar; in scanopt_err() 515 optname = s->argv[s->index]; in scanopt_err() 525 optname); in scanopt_err() 530 optname); in scanopt_err() 534 optname); in scanopt_err() 538 optname); in scanopt_err() 559 *optname = *arg = NULL; in matchlongopt() 568 *optname = p; in matchlongopt() 609 const char *optname; in find_opt() local [all …]
|
| /freebsd-13.1/tools/regression/priv/ |
| H A D | priv_netinet_ipsec.c | 198 int error, level, optname; in priv_netinet_ipsec_policy_bypass_af() local 203 optname = IP_IPSEC_POLICY; in priv_netinet_ipsec_policy_bypass_af() 208 optname = IPV6_IPSEC_POLICY; in priv_netinet_ipsec_policy_bypass_af() 215 error = setsockopt(sd, level, optname, in priv_netinet_ipsec_policy_bypass_af() 251 int error, level, optname; in priv_netinet_ipsec_policy_entrust_af() local 256 optname = IP_IPSEC_POLICY; in priv_netinet_ipsec_policy_entrust_af() 261 optname = IPV6_IPSEC_POLICY; in priv_netinet_ipsec_policy_entrust_af() 268 error = setsockopt(sd, level, optname, in priv_netinet_ipsec_policy_entrust_af()
|
| /freebsd-13.1/sbin/setkey/ |
| H A D | test-policy.c | 98 int so, proto, optname; in test() local 105 optname = IP_IPSEC_POLICY; in test() 109 optname = IPV6_IPSEC_POLICY; in test() 116 if (setsockopt(so, proto, optname, policy, PFKEY_EXTLEN(policy)) < 0) in test() 121 if (getsockopt(so, proto, optname, getbuf, &len) < 0) in test()
|
| /freebsd-13.1/contrib/apr/network_io/unix/ |
| H A D | sockopt.c | 214 int optname = TCP_DEFER_ACCEPT; in apr_socket_opt_set() local 216 if (setsockopt(sock->socketdes, optlevel, optname, in apr_socket_opt_set() 230 int optname = TCP_NODELAY; in apr_socket_opt_set() local 235 optname = SCTP_NODELAY; in apr_socket_opt_set() 238 if (setsockopt(sock->socketdes, optlevel, optname, (void *)&on, sizeof(int)) == -1) { in apr_socket_opt_set() 266 int optname = TCP_NODELAY; in apr_socket_opt_set() local 271 optname = SCTP_NODELAY; in apr_socket_opt_set() 279 if (setsockopt(sock->socketdes, optlevel, optname, in apr_socket_opt_set() 302 if (setsockopt(sock->socketdes, optlevel, optname, in apr_socket_opt_set()
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | socket_wrapper.h | 46 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) argument 97 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen) argument
|
| /freebsd-13.1/crypto/heimdal/appl/ftp/common/ |
| H A D | sockbuf.c | 49 int optname = read ? SO_RCVBUF : SO_SNDBUF; in set_buffer_size() local 56 if(getsockopt(fd, SOL_SOCKET, optname, (void *)&curr, &optlen) == 0) { in set_buffer_size() 65 setsockopt(fd, SOL_SOCKET, optname, (void *)&size, sizeof(size)) < 0) in set_buffer_size()
|
| /freebsd-13.1/sys/netinet6/ |
| H A D | ip6_output.c | 2423 switch (optname) { in ip6_raw_ctloutput() 2610 switch (optname) { in ip6_getpcbopt() 2686 if (optname == -1 || optname == IPV6_PKTINFO) { in ip6_clearpktopts() 2691 if (optname == -1 || optname == IPV6_HOPLIMIT) in ip6_clearpktopts() 2693 if (optname == -1 || optname == IPV6_TCLASS) in ip6_clearpktopts() 2695 if (optname == -1 || optname == IPV6_NEXTHOP) { in ip6_clearpktopts() 2704 if (optname == -1 || optname == IPV6_HOPOPTS) { in ip6_clearpktopts() 2709 if (optname == -1 || optname == IPV6_RTHDRDSTOPTS) { in ip6_clearpktopts() 2714 if (optname == -1 || optname == IPV6_RTHDR) { in ip6_clearpktopts() 2723 if (optname == -1 || optname == IPV6_DSTOPTS) { in ip6_clearpktopts() [all …]
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | sourcefilter.c | 284 int level, optname; in setsourcefilter() local 301 optname = IP_MSFILTER; in setsourcefilter() 312 optname = IPV6_MSFILTER; in setsourcefilter() 327 return (_setsockopt(s, level, optname, &msfr, sizeof(msfr))); in setsourcefilter() 342 int err, level, nsrcs, optname; in getsourcefilter() local 364 optname = IP_MSFILTER; in getsourcefilter() 375 optname = IPV6_MSFILTER; in getsourcefilter() 397 err = _getsockopt(s, level, optname, &msfr, &optlen); in getsourcefilter()
|
| /freebsd-13.1/usr.sbin/mtest/ |
| H A D | mtest.c | 392 int af, error, f, flags, i, level, n, optname; in process_cmd() local 448 optname = (*cmd == 'j') ? in process_cmd() 459 optname = (*cmd == 'j') ? in process_cmd() 488 optname = (*cmd == 'j') ? in process_cmd() 499 optname = (*cmd == 'j') ? in process_cmd() 641 optname = (*cmd == 't') ? in process_cmd() 649 optname = (*cmd == 't') ? in process_cmd() 656 if (setsockopt(s, level, optname, optval, in process_cmd() 676 optname = (*cmd == 't') ? in process_cmd() 684 optname = (*cmd == 't') ? in process_cmd() [all …]
|
| /freebsd-13.1/tools/regression/netinet/msocket/ |
| H A D | msocket.c | 82 test_u_char(int optname, const char *optstring, u_char defaultv, in test_u_char() argument 96 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 111 ret = setsockopt(sock, IPPROTO_IP, optname, &uc, sizeof(uc)); in test_u_char() 121 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 138 test_in_addr(int optname, const char *optstring, struct in_addr defaultv, in test_in_addr() argument 152 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr() 168 ret = setsockopt(sock, IPPROTO_IP, optname, &ia, sizeof(ia)); in test_in_addr() 178 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr()
|
| /freebsd-13.1/lib/libipsec/ |
| H A D | test-policy.c | 159 int proto = 0, optname = 0; local 166 optname = IP_IPSEC_POLICY; 170 optname = IPV6_IPSEC_POLICY; 182 if (setsockopt(so, proto, optname, policy, len) < 0) { 190 if (getsockopt(so, proto, optname, getbuf, &len) < 0) {
|
| /freebsd-13.1/tools/regression/usr.bin/env/ |
| H A D | regress-sb.rb | 331 def RGTestOptions.parse(optname, optval) argument 334 if not @@rgtest_opts.has_key?(optname) 336 optname 354 case optname 403 optname 409 optname, optval
|
| /freebsd-13.1/contrib/ntp/sntp/ag-tpl/0-old/ |
| H A D | perlopt.tpl | 23 (define optname-from "A-Z_^") 24 (define optname-to "a-z--") 38 (define optname (string-tr! (get "name") optname-from optname-to)) 84 (define def_add (string-append "'" optname (if (exist? "value")
|
| /freebsd-13.1/sbin/ipf/libipf/ |
| H A D | optvalue.c | 14 getoptbyname(char *optname) in getoptbyname() argument 19 if (!strcasecmp(optname, io->on_name)) in getoptbyname()
|
| H A D | v6optvalue.c | 14 u_32_t getv6optbyname(char *optname) in getv6optbyname() argument 20 if (!strcasecmp(optname, io->on_name)) in getv6optbyname()
|
| /freebsd-13.1/contrib/ntp/lib/isc/win32/ |
| H A D | net.c | 223 int optname; in try_ipv6pktinfo() local 247 optname = IPV6_RECVPKTINFO; in try_ipv6pktinfo() 249 optname = IPV6_PKTINFO; in try_ipv6pktinfo() 252 if (setsockopt(s, IPPROTO_IPV6, optname, (const char *) &on, in try_ipv6pktinfo()
|
| /freebsd-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | net.c | 326 int optname; in try_ipv6pktinfo() local 350 optname = IPV6_RECVPKTINFO; in try_ipv6pktinfo() 352 optname = IPV6_PKTINFO; in try_ipv6pktinfo() 355 if (setsockopt(s, IPPROTO_IPV6, optname, &on, sizeof(on)) < 0) { in try_ipv6pktinfo()
|
| /freebsd-13.1/sbin/ipfw/ |
| H A D | ipfw2.h | 367 int do_cmd(int optname, void *optval, uintptr_t optlen); 368 int do_set3(int optname, struct _ip_fw3_opheader *op3, size_t optlen); 369 int do_get3(int optname, struct _ip_fw3_opheader *op3, size_t *optlen); 407 void ipfw_zero(int ac, char *av[], int optname);
|
| /freebsd-13.1/contrib/ofed/librdmacm/ |
| H A D | rsocket.h | 85 int rsetsockopt(int socket, int level, int optname, 87 int rgetsockopt(int socket, int level, int optname,
|
| /freebsd-13.1/lib/libsysdecode/ |
| H A D | flags.c | 916 sysdecode_sockopt_name(int level, int optname) in sysdecode_sockopt_name() argument 920 return (lookup_value(sockopt, optname)); in sysdecode_sockopt_name() 923 return (lookup_value(sockoptip, optname)); in sysdecode_sockopt_name() 925 return (lookup_value(sockoptipv6, optname)); in sysdecode_sockopt_name() 927 return (lookup_value(sockoptsctp, optname)); in sysdecode_sockopt_name() 929 return (lookup_value(sockopttcp, optname)); in sysdecode_sockopt_name() 931 return (lookup_value(sockoptudp, optname)); in sysdecode_sockopt_name() 933 return (lookup_value(sockoptudplite, optname)); in sysdecode_sockopt_name()
|
| /freebsd-13.1/tools/tools/shlib-compat/ |
| H A D | shlib-compat.py | 503 if raw.optname == None: 511 return VariableDef(raw.id, raw.optname, type=type) 516 return FunctionTypeDef(raw.id, raw.optname, params=params, result=result) 520 return ParameterDef(raw.id, raw.optname, type=type) 534 incomplete = StructIncompleteDef(raw.id, raw.optname) 543 obj = StructDef(raw.id, raw.optname, members=members, 551 incomplete = UnionIncompleteDef(raw.id, raw.optname) 557 obj = UnionDef(raw.id, raw.optname, members=members, 581 return EnumerationTypeDef(raw.id, name=raw.optname, 585 return BaseTypeDef(raw.id, raw.optname, [all …]
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_socket.c | 1809 name = linux_to_bsd_so_sockopt(args->optname); in linux_setsockopt() 1831 if (args->optname == LINUX_IP_RECVERR && in linux_setsockopt() 1839 name = linux_to_bsd_ip_sockopt(args->optname); in linux_setsockopt() 1842 name = linux_to_bsd_ip6_sockopt(args->optname); in linux_setsockopt() 1845 name = linux_to_bsd_tcp_sockopt(args->optname); in linux_setsockopt() 1855 args->level, args->optname); in linux_setsockopt() 1949 switch (args->optname) { in linux_getsockopt() 1958 name = linux_to_bsd_so_sockopt(args->optname); in linux_getsockopt() 2008 name = linux_to_bsd_ip_sockopt(args->optname); in linux_getsockopt() 2011 name = linux_to_bsd_ip6_sockopt(args->optname); in linux_getsockopt() [all …]
|