Home
last modified time | relevance | path

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

1234

/external/musl/src/network/
Dgetsockopt.c6 int getsockopt(int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen) in getsockopt() argument
11 int r = __socketcall(getsockopt, fd, level, optname, optval, optlen, 0); in getsockopt()
15 switch (optname) { in getsockopt()
20 if (optname==SO_RCVTIMEO) optname=SO_RCVTIMEO_OLD; in getsockopt()
21 if (optname==SO_SNDTIMEO) optname=SO_SNDTIMEO_OLD; in getsockopt()
22 r = __socketcall(getsockopt, fd, level, optname, in getsockopt()
33 if (optname==SO_TIMESTAMP) optname=SO_TIMESTAMP_OLD; in getsockopt()
34 if (optname==SO_TIMESTAMPNS) optname=SO_TIMESTAMPNS_OLD; in getsockopt()
36 optname, optval, optlen, 0); in getsockopt()
Dsetsockopt.c9 int setsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() argument
15 int r = __socketcall(setsockopt, fd, level, optname, optval, optlen, 0); in setsockopt()
19 switch (optname) { in setsockopt()
29 if (optname==SO_RCVTIMEO) optname=SO_RCVTIMEO_OLD; in setsockopt()
30 if (optname==SO_SNDTIMEO) optname=SO_SNDTIMEO_OLD; in setsockopt()
32 r = __socketcall(setsockopt, fd, level, optname, in setsockopt()
38 if (optname==SO_TIMESTAMP) optname=SO_TIMESTAMP_OLD; in setsockopt()
39 if (optname==SO_TIMESTAMPNS) optname=SO_TIMESTAMPNS_OLD; in setsockopt()
41 optname, optval, optlen, 0); in setsockopt()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c44 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt()
53 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt()
61 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
69 if (ctx->level == SOL_TCP && ctx->optname == TCP_ZEROCOPY_RECEIVE) { in _getsockopt()
84 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt()
142 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt()
151 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt()
163 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
175 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
Dsockopt_multi.c14 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child()
37 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent()
60 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _setsockopt()
Dsockopt_inherit.c39 if (ctx->optname == CUSTOM_INHERIT1) in get_storage()
42 else if (ctx->optname == CUSTOM_INHERIT2) in get_storage()
/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-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/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/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/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/include/
Dtst_safe_net.h23 #define SAFE_GETSOCKOPT(fd, level, optname, optval, optlen) \ argument
24 safe_getsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
26 #define SAFE_SETSOCKOPT(fd, level, optname, optval, optlen) \ argument
27 safe_setsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
/external/ltp/utils/sctp/testlib/
Dsctputil.h270 static inline int test_getsockopt(int sk, int optname, void *optval, in test_getsockopt() argument
273 int error = getsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_getsockopt()
276 tst_brkm(TBROK, tst_exit, "getsockopt(%d): %s", optname, in test_getsockopt()
281 static inline int test_setsockopt(int sk, int optname, const void *optval, in test_setsockopt() argument
284 int error = setsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_setsockopt()
287 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.py1017 optname = None
1049 optname and
1050 cursect[optname] is not None):
1051 cursect[optname].append('') # newlines added at join
1059 if (cursect is not None and optname and
1061 cursect[optname].append(value)
1083 optname = None
1091 optname, vi, optval = mo.group('option', 'vi', 'value')
1092 if not optname:
1094 optname = self.optionxform(optname.rstrip())
[all …]
/external/ltp/lib/
Dsafe_net.c170 int optname, void *optval, socklen_t *optlen) in safe_getsockopt() argument
172 int rval = getsockopt(sockfd, level, optname, optval, optlen); in safe_getsockopt()
177 sockfd, level, optname, optval, optlen); in safe_getsockopt()
181 sockfd, level, optname, optval, optlen, rval); in safe_getsockopt()
188 int optname, const void *optval, socklen_t optlen) in safe_setsockopt() argument
192 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt()
197 sockfd, level, optname, optval, optlen); in safe_setsockopt()
201 sockfd, level, optname, optval, optlen, rval); in safe_setsockopt()
/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/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/linux-kselftest/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c232 static void do_getsockopt_bogus_sf_data(int fd, int optname) in do_getsockopt_bogus_sf_data() argument
248 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
254 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
264 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
271 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
277 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
285 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
299 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &_olen); in do_getsockopt_bogus_sf_data()
/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()

1234