/freebsd/contrib/less/ |
H A D | opttbl.c | 148 static struct optname rscroll_optname = { "rscroll", NULL }; 166 static struct optname no_vbell_optname = { "no-vbell", NULL }; 167 static struct optname intr_optname = { "intr", NULL }; 168 static struct optname wordwrap_optname = { "wordwrap", NULL }; 171 static struct optname proc_tab_optname = { "proc-tab", NULL }; 788 char *optname = *p_optname; in findopt_name() local 790 struct optname *oname; in findopt_name() 794 struct optname *maxoname = NULL; in findopt_name() 816 len = sprefix(optname, oname->oname, uppercase); in findopt_name() 817 if (len <= 0 || is_optchar(optname[len])) in findopt_name() [all …]
|
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 */
|
H A D | option.c | 68 char *optname; in scan_option() local 103 optname = NULL; in scan_option() 122 optname = ++s; in scan_option() 179 if (optname == NULL) in scan_option() 186 printopt = optname; in scan_option() 187 lc = ASCII_IS_LOWER(optname[0]); in scan_option() 188 o = findopt_name(&optname, NULL, &err); in scan_option() 189 s = optname; in scan_option() 190 optname = NULL; in scan_option()
|
/freebsd/usr.sbin/config/ |
H A D | mkoptions.cc | 327 check_duplicate(fname, optname); in insert_option() 331 po->o_name = optname; in insert_option() 343 if (eq(po->o_name, optname)) { in update_option() 362 char *optname, *val; in read_option_file() local 376 optname = ns(wd); in read_option_file() 379 free(optname); in read_option_file() 388 char *s = ns(optname); in read_option_file() 402 insert_option(fname, optname, val); in read_option_file() 404 update_option(optname, val, flags); in read_option_file() 405 free(optname); in read_option_file() [all …]
|
/freebsd/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/tools/regression/priv/ |
H A D | priv_netinet_ipsec.c | 196 int error, level, optname; in priv_netinet_ipsec_policy_bypass_af() local 201 optname = IP_IPSEC_POLICY; in priv_netinet_ipsec_policy_bypass_af() 206 optname = IPV6_IPSEC_POLICY; in priv_netinet_ipsec_policy_bypass_af() 213 error = setsockopt(sd, level, optname, in priv_netinet_ipsec_policy_bypass_af() 249 int error, level, optname; in priv_netinet_ipsec_policy_entrust_af() local 254 optname = IP_IPSEC_POLICY; in priv_netinet_ipsec_policy_entrust_af() 259 optname = IPV6_IPSEC_POLICY; in priv_netinet_ipsec_policy_entrust_af() 266 error = setsockopt(sd, level, optname, in priv_netinet_ipsec_policy_entrust_af()
|
/freebsd/sbin/setkey/ |
H A D | test-policy.c | 96 int so, proto, optname; in test() local 103 optname = IP_IPSEC_POLICY; in test() 107 optname = IPV6_IPSEC_POLICY; in test() 114 if (setsockopt(so, proto, optname, policy, PFKEY_EXTLEN(policy)) < 0) in test() 119 if (getsockopt(so, proto, optname, getbuf, &len) < 0) in test()
|
/freebsd/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/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/lib/libc/net/ |
H A D | sourcefilter.c | 281 int level, optname; in setsourcefilter() local 298 optname = IP_MSFILTER; in setsourcefilter() 309 optname = IPV6_MSFILTER; in setsourcefilter() 324 return (_setsockopt(s, level, optname, &msfr, sizeof(msfr))); in setsourcefilter() 339 int err, level, nsrcs, optname; in getsourcefilter() local 361 optname = IP_MSFILTER; in getsourcefilter() 372 optname = IPV6_MSFILTER; in getsourcefilter() 394 err = _getsockopt(s, level, optname, &msfr, &optlen); in getsourcefilter()
|
/freebsd/sys/netinet6/ |
H A D | ip6_output.c | 2383 switch (optname) { in ip6_raw_ctloutput() 2575 switch (optname) { in ip6_getpcbopt() 2651 if (optname == -1 || optname == IPV6_PKTINFO) { in ip6_clearpktopts() 2656 if (optname == -1 || optname == IPV6_HOPLIMIT) { in ip6_clearpktopts() 2660 if (optname == -1 || optname == IPV6_TCLASS) { in ip6_clearpktopts() 2664 if (optname == -1 || optname == IPV6_NEXTHOP) { in ip6_clearpktopts() 2674 if (optname == -1 || optname == IPV6_HOPOPTS) { in ip6_clearpktopts() 2680 if (optname == -1 || optname == IPV6_RTHDRDSTOPTS) { in ip6_clearpktopts() 2686 if (optname == -1 || optname == IPV6_RTHDR) { in ip6_clearpktopts() 2696 if (optname == -1 || optname == IPV6_DSTOPTS) { in ip6_clearpktopts() [all …]
|
/freebsd/usr.sbin/mtest/ |
H A D | mtest.c | 389 int af, error, f, flags, i, level, n, optname; in process_cmd() local 445 optname = (*cmd == 'j') ? in process_cmd() 456 optname = (*cmd == 'j') ? in process_cmd() 485 optname = (*cmd == 'j') ? in process_cmd() 496 optname = (*cmd == 'j') ? in process_cmd() 638 optname = (*cmd == 't') ? in process_cmd() 646 optname = (*cmd == 't') ? in process_cmd() 653 if (setsockopt(s, level, optname, optval, in process_cmd() 673 optname = (*cmd == 't') ? in process_cmd() 681 optname = (*cmd == 't') ? in process_cmd() [all …]
|
/freebsd/tools/regression/netinet/msocket/ |
H A D | msocket.c | 80 test_u_char(int optname, const char *optstring, u_char defaultv, in test_u_char() argument 94 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 109 ret = setsockopt(sock, IPPROTO_IP, optname, &uc, sizeof(uc)); in test_u_char() 119 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 136 test_in_addr(int optname, const char *optstring, struct in_addr defaultv, in test_in_addr() argument 150 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr() 166 ret = setsockopt(sock, IPPROTO_IP, optname, &ia, sizeof(ia)); in test_in_addr() 176 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr()
|
/freebsd/lib/libipsec/ |
H A D | test-policy.c | 156 int proto = 0, optname = 0; local 163 optname = IP_IPSEC_POLICY; 167 optname = IPV6_IPSEC_POLICY; 179 if (setsockopt(so, proto, optname, policy, len) < 0) { 187 if (getsockopt(so, proto, optname, getbuf, &len) < 0) {
|
/freebsd/tools/regression/usr.bin/env/ |
H A D | regress-sb.rb | 330 def RGTestOptions.parse(optname, optval) argument 333 if not @@rgtest_opts.has_key?(optname) 335 optname 353 case optname 402 optname 408 optname, optval
|
/freebsd/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/sbin/ipf/libipf/ |
H A D | optvalue.c | 13 getoptbyname(char *optname) in getoptbyname() argument 18 if (!strcasecmp(optname, io->on_name)) in getoptbyname()
|
H A D | v6optvalue.c | 13 u_32_t getv6optbyname(char *optname) in getv6optbyname() argument 19 if (!strcasecmp(optname, io->on_name)) in getv6optbyname()
|
/freebsd/contrib/ntp/libntp/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/usr.sbin/tcpsso/ |
H A D | tcpsso.c | 294 int i, level, optname, optval_int; in create_parameters() local 329 optname = so_names[i].value; in create_parameters() 340 optname = (int)arg; in create_parameters() 358 switch (optname) { in create_parameters() 375 params->sop_optname = optname; in create_parameters() 376 switch (optname) { in create_parameters()
|
/freebsd/crypto/openssl/Configurations/platform/ |
H A D | VMS.pm | 33 sub optname { return $_[1] } subroutine 34 sub opt { return $_[0]->optname($_[1]) . $_[0]->optext() }
|
/freebsd/contrib/ntp/libntp/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/sbin/ipfw/ |
H A D | ipfw2.h | 371 int do_cmd(int optname, void *optval, uintptr_t optlen); 372 int do_set3(int optname, struct _ip_fw3_opheader *op3, size_t optlen); 373 int do_get3(int optname, struct _ip_fw3_opheader *op3, size_t *optlen); 411 void ipfw_zero(int ac, char *av[], int optname);
|
/freebsd/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/lib/libsysdecode/ |
H A D | flags.c | 765 sysdecode_sockopt_name(int level, int optname) in sysdecode_sockopt_name() argument 769 return (lookup_value(sockopt, optname)); in sysdecode_sockopt_name() 772 return (lookup_value(sockoptip, optname)); in sysdecode_sockopt_name() 774 return (lookup_value(sockoptipv6, optname)); in sysdecode_sockopt_name() 776 return (lookup_value(sockoptsctp, optname)); in sysdecode_sockopt_name() 778 return (lookup_value(sockopttcp, optname)); in sysdecode_sockopt_name() 780 return (lookup_value(sockoptudp, optname)); in sysdecode_sockopt_name() 782 return (lookup_value(sockoptudplite, optname)); in sysdecode_sockopt_name()
|