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

12

/freebsd-9.3-release/contrib/less/
H A Dopttbl.c65 static struct optname a_optname = { "search-skip-screen", NULL };
66 static struct optname b_optname = { "buffers", NULL };
67 static struct optname B__optname = { "auto-buffers", NULL };
68 static struct optname c_optname = { "clear-screen", NULL };
69 static struct optname d_optname = { "dumb", NULL };
71 static struct optname D__optname = { "color", NULL };
73 static struct optname e_optname = { "quit-at-eof", NULL };
74 static struct optname f_optname = { "force", NULL };
75 static struct optname F__optname = { "quit-if-one-screen", NULL };
77 static struct optname g_optnam
535 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;
179 if (optname == NULL)
186 printopt = optname;
187 lc = ASCII_IS_LOWER(optname[0]);
188 o = findopt_name(&optname, NULL, &err);
189 s = optname;
190 optname = NULL;
/freebsd-9.3-release/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.c8 * $Id: optname.c,v 1.3.4.1 2006/06/16 17:21:07 darrenr Exp $
14 u_32_t optname(cp, sp, linenum) function
/freebsd-9.3-release/usr.sbin/sysinstall/
H A Ddhcp.c41 char optbuf[1024], *optname = NULL; local
100 if (optname)
101 free(optname);
102 optname = strdup(tempbuf);
130 if (!strcasecmp("host-name", optname)) {
132 } else if (!strcasecmp("domain-name", optname)) {
134 } else if (!strcasecmp("fixed-address", optname)) {
136 } else if (!strcasecmp("routers", optname)) {
140 } else if (!strcasecmp("subnet-mask", optname)) {
142 } else if (!strcasecmp("domain-name-servers", optname)) {
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/sys/sys/
H A Dsockopt.h69 int so_setsockopt(struct socket *so, int level, int optname,
/freebsd-9.3-release/lib/libc/net/
H A Dsourcefilter.c283 int level, optname; local
300 optname = IP_MSFILTER;
311 optname = IPV6_MSFILTER;
326 return (_setsockopt(s, level, optname, &msfr, sizeof(msfr)));
340 int err, level, nsrcs, optlen, optname; local
362 optname = IP_MSFILTER;
373 optname = IPV6_MSFILTER;
395 err = _getsockopt(s, level, optname, &msfr, &optlen);
/freebsd-9.3-release/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-9.3-release/usr.sbin/mtest/
H A Dmtest.c389 int af, error, f, flags, i, level, n, optname; local
444 optname = (*cmd == 'j') ?
455 optname = (*cmd == 'j') ?
465 } else if (setsockopt(s, level, optname, optval,
484 optname = (*cmd == 'j') ?
495 optname = (*cmd == 'j') ?
507 } else if (setsockopt(s6, level, optname, optval,
638 optname = (*cmd == 't') ?
646 optname = (*cmd == 't') ?
653 if (setsockopt(s, level, optname, optva
[all...]
/freebsd-9.3-release/lib/libipsec/
H A Dtest-policy.c158 int proto = 0, optname = 0; local
165 optname = IP_IPSEC_POLICY;
169 optname = IPV6_IPSEC_POLICY;
181 if (setsockopt(so, proto, optname, policy, len) < 0) {
189 if (getsockopt(so, proto, optname, getbuf, &len) < 0) {
/freebsd-9.3-release/sys/netinet6/
H A Dip6_output.c1473 int level, op, optname; local
1479 optname = sopt->sopt_name;
1524 switch (optname) {
1579 if (optname == IPV6_BINDANY && td != NULL) {
1594 switch (optname) {
1764 error = ip6_pcbopt(optname,
1785 switch (optname) {
1850 error = ip6_pcbopt(optname, optbuf, optlen,
1913 error = ipsec_set_policy(in6p, optname, req,
1928 switch (optname) {
2160 int level, op, optname; local
2286 ip6_pcbopt(int optname, u_char *buf, int len, struct ip6_pktopts **pktopt, struct ucred *cred, int uproto) argument
2302 ip6_getpcbopt(struct ip6_pktopts *pktopt, int optname, struct sockopt *sopt) argument
2400 ip6_clearpktopts(struct ip6_pktopts *pktopt, int optname) argument
2598 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-9.3-release/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-9.3-release/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
353 case optname
402 optname
408 optname, optval
/freebsd-9.3-release/sbin/ipfw/
H A Dipfw2.h229 int do_cmd(int optname, void *optval, uintptr_t optlen);
268 void ipfw_zero(int ac, char *av[], int optname);
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/
H A Dnet.c325 int optname; local
349 optname = IPV6_RECVPKTINFO;
351 optname = IPV6_PKTINFO;
354 if (setsockopt(s, IPPROTO_IPV6, optname, &on, sizeof(on)) < 0) {
/freebsd-9.3-release/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-9.3-release/sbin/ipf/libipf/
H A DMakefile16 optname.c optprint.c optprintv6.c optvalue.c portname.c \
/freebsd-9.3-release/sbin/geom/core/
H A Dgeom.c243 const char *optname; local
263 optname = ptr;
265 optname = opt->go_name;
278 gctl_ro_param(req, optname, sizeof(intmax_t), opt->go_val);
280 gctl_ro_param(req, optname, -1, val);
287 gctl_ro_param(req, optname, sizeof(int), opt->go_val);
293 free(__DECONST(char *, optname));
/freebsd-9.3-release/contrib/ofed/librdmacm/include/rdma/
H A Drdma_cma.h562 * @optname: Name of the option to set.
566 int rdma_set_option(struct rdma_cm_id *id, int level, int optname,
H A Drdma_cma_abi.h221 __u32 optname; member in struct:ucma_abi_set_option

Completed in 177 milliseconds

12