Home
last modified time | relevance | path

Searched refs:optname (Results 1 – 25 of 68) sorted by relevance

123

/external/strace/tests/
Dnet-packet_mreq.c9 packet_mreq_membership(int optname, void *optval, socklen_t len) in packet_mreq_membership() argument
11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in packet_mreq_membership()
17 test_packet_mreq(const int optname, const char *const optname_str) in test_packet_mreq() argument
30 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
41 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
52 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
77 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
89 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
Dnet-tpacket_req.c9 set_tpacket_req(int optname, void *optval, socklen_t len) in set_tpacket_req() argument
11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in set_tpacket_req()
17 test_tpacket_req(const int optname, const char *const optname_str) in test_tpacket_req() argument
29 set_tpacket_req(optname, tpreq, len); in test_tpacket_req()
37 set_tpacket_req(optname, tpreq, len); in test_tpacket_req()
/external/strace/tests-mx32/
Dnet-packet_mreq.c9 packet_mreq_membership(int optname, void *optval, socklen_t len) in packet_mreq_membership() argument
11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in packet_mreq_membership()
17 test_packet_mreq(const int optname, const char *const optname_str) in test_packet_mreq() argument
30 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
41 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
52 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
77 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
89 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
Dnet-tpacket_req.c9 set_tpacket_req(int optname, void *optval, socklen_t len) in set_tpacket_req() argument
11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in set_tpacket_req()
17 test_tpacket_req(const int optname, const char *const optname_str) in test_tpacket_req() argument
29 set_tpacket_req(optname, tpreq, len); in test_tpacket_req()
37 set_tpacket_req(optname, tpreq, len); in test_tpacket_req()
/external/strace/tests-m32/
Dnet-packet_mreq.c9 packet_mreq_membership(int optname, void *optval, socklen_t len) in packet_mreq_membership() argument
11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in packet_mreq_membership()
17 test_packet_mreq(const int optname, const char *const optname_str) in test_packet_mreq() argument
30 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
41 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
52 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
77 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
89 packet_mreq_membership(optname, pmreq, len); in test_packet_mreq()
Dnet-tpacket_req.c9 set_tpacket_req(int optname, void *optval, socklen_t len) in set_tpacket_req() argument
11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in set_tpacket_req()
17 test_tpacket_req(const int optname, const char *const optname_str) in test_tpacket_req() argument
29 set_tpacket_req(optname, tpreq, len); in test_tpacket_req()
37 set_tpacket_req(optname, tpreq, len); in test_tpacket_req()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c31 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) in _getsockopt()
38 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt()
46 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
84 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) in _setsockopt()
91 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt()
103 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
Dsockopt_multi.c15 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child()
38 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent()
61 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _setsockopt()
Dsockopt_inherit.c40 if (ctx->optname == CUSTOM_INHERIT1) in get_storage()
43 else if (ctx->optname == CUSTOM_INHERIT2) in get_storage()
/external/ppp/pppd/plugins/radius/
Dconfig.c31 static OPTION *find_option(char *optname, unsigned int type) in find_option() argument
37 if (!strcmp(config_options[i].name, optname) && in find_option()
267 char *rc_conf_str(char *optname) in rc_conf_str() argument
271 option = find_option(optname, OT_STR); in rc_conf_str()
274 fatal("rc_conf_str: unkown config option requested: %s", optname); in rc_conf_str()
278 int rc_conf_int(char *optname) in rc_conf_int() argument
282 option = find_option(optname, OT_INT|OT_AUO); in rc_conf_int()
285 fatal("rc_conf_int: unkown config option requested: %s", optname); in rc_conf_int()
289 SERVER *rc_conf_srv(char *optname) in rc_conf_srv() argument
293 option = find_option(optname, OT_SRV); in rc_conf_srv()
[all …]
/external/arm-trusted-firmware/tools/fiptool/
Dwin_posix.c145 int optmatch(const char *argval, const char *optname) in optmatch() argument
149 while ((result == 0) && (*optname != 0) && (*argval != 0)) in optmatch()
150 result = (*argval++) - (*optname++); in optmatch()
159 const char *const optname, in getopt_1long() argument
177 if (strcmp(optname, longopts[loptn].name) == 0) { in getopt_1long()
188 if (optmatch(optname, longopts[loptn].name) == 0) { in getopt_1long()
/external/ltp/include/
Dtst_safe_net.h35 #define SAFE_GETSOCKOPT(fd, level, optname, optval, optlen) \ argument
36 safe_getsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
38 #define SAFE_SETSOCKOPT(fd, level, optname, optval, optlen) \ argument
39 safe_setsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
Dsafe_net_fn.h35 int optname, void *optval, socklen_t *optlen);
38 int optname, const void *optval, socklen_t optlen);
/external/android-clat/
Dsetif.c31 optname = #a; \
140 char *optname; in do_anycast_setsockopt() local
147 optname = "???"; in do_anycast_setsockopt()
153 logmsg(ANDROID_LOG_ERROR, "%s: setsockopt(%s): %s", __func__, optname, strerror(errno)); in do_anycast_setsockopt()
/external/ipsec-tools/src/libipsec/
Dtest-policy.c156 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) {
/external/ltp/utils/sctp/testlib/
Dsctputil.h242 static inline int test_getsockopt(int sk, int optname, void *optval, in test_getsockopt() argument
245 int error = getsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_getsockopt()
247 tst_brkm(TBROK, tst_exit, "getsockopt(%d): %s", optname, in test_getsockopt()
252 static inline int test_setsockopt(int sk, int optname, const void *optval, in test_setsockopt() argument
255 int error = setsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_setsockopt()
257 tst_brkm(TBROK, tst_exit, "setsockopt(%d): %s", optname, in test_setsockopt()
/external/python/pycparser/pycparser/
Dplyparser.py40 optname = rulename + '_opt'
45 optrule.__doc__ = '%s : empty\n| %s' % (optname, rulename)
46 optrule.__name__ = 'p_%s' % optname
/external/python/cpython2/Lib/
DConfigParser.py475 optname = None
490 if line[0].isspace() and cursect is not None and optname:
493 cursect[optname].append(value)
509 optname = None
517 optname, vi, optval = mo.group('option', 'vi', 'value')
518 optname = self.optionxform(optname.rstrip())
532 cursect[optname] = [optval]
535 cursect[optname] = optval
/external/python/cpython3/Lib/
Dconfigparser.py1013 optname = None
1045 optname and
1046 cursect[optname] is not None):
1047 cursect[optname].append('') # newlines added at join
1055 if (cursect is not None and optname and
1057 cursect[optname].append(value)
1079 optname = None
1087 optname, vi, optval = mo.group('option', 'vi', 'value')
1088 if not optname:
1090 optname = self.optionxform(optname.rstrip())
[all …]
/external/ltp/lib/
Dsafe_net.c162 int optname, void *optval, socklen_t *optlen) in safe_getsockopt() argument
164 int rval = getsockopt(sockfd, level, optname, optval, optlen); in safe_getsockopt()
171 file, lineno, sockfd, level, optname, optval, optlen); in safe_getsockopt()
177 int optname, const void *optval, socklen_t optlen) in safe_setsockopt() argument
181 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt()
186 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
/external/python/cpython2/Tools/scripts/
Duntabify.py19 for optname, optvalue in opts:
20 if optname == '-t':
/external/python/cpython3/Tools/scripts/
Duntabify.py20 for optname, optvalue in opts:
21 if optname == '-t':
/external/iptables/extensions/
Dlibxt_iprange.c45 uint8_t family, const char *optname) in iprange_parse_spec() argument
59 optname, spec[i]); in iprange_parse_spec()
67 optname, spec[i]); in iprange_parse_spec()
74 uint8_t family, const char *optname) in iprange_parse_range() argument
83 iprange_parse_spec(arg, arg, range, family, optname); in iprange_parse_range()
89 iprange_parse_spec(arg, dash + 1, range, family, optname); in iprange_parse_range()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dsockopt_inherit.c39 static int verify_sockopt(int fd, int optname, const char *msg, char expected) in verify_sockopt() argument
45 err = getsockopt(fd, SOL_CUSTOM, optname, &buf, &optlen); in verify_sockopt()
51 printf("%s %d: got=0x%x ? expected=0x%x\n", msg, optname, buf, expected); in verify_sockopt()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/third_party/lunit/
Dlunit.lua652 local function checkarg(optname, arg)
654 return error("lunit.main: option "..optname..": argument missing.", 0)
680 local optname = arg; i = i + 1; arg = argv[i]
681 checkarg(optname, arg)
684 local optname = arg; i = i + 1; arg = argv[i]
685 checkarg(optname, arg)

123