/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_multi.c | 67 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 75 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 98 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 122 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 141 if (setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1) < 0) { in run_getsockopt_test() 148 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 167 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 179 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 187 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 216 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test() [all …]
|
D | sockopt.c | 74 .get_level = SOL_IP, 75 .set_level = SOL_IP, 95 .get_level = SOL_IP, 206 .get_level = SOL_IP, 376 .get_level = SOL_IP, 419 .get_level = SOL_IP, 420 .set_level = SOL_IP, 441 .set_level = SOL_IP, 498 BPF_MOV64_IMM(BPF_REG_0, SOL_IP), 508 .get_level = SOL_IP, [all …]
|
D | sockopt_sk.c | 26 err = setsockopt(fd, SOL_IP, IP_TOS, &buf, 1); in getsetsockopt() 34 err = getsockopt(fd, SOL_IP, IP_TOS, &buf, &optlen); in getsetsockopt() 49 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1); in getsetsockopt()
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | sockopt_multi.c | 15 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()
|
D | sockopt_sk.c | 31 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) in _getsockopt() 84 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) in _setsockopt()
|
/external/strace/xlat/ |
D | getsock_ip_options.in | 2 * Options specific to getsockopt(SOL_IP). 3 * Common {g,s}etsockopt(SOL_IP) options
|
D | setsock_ip_options.in | 2 * Options specific to setsockopt(SOL_IP). 3 * Common {g,s}etsockopt(SOL_IP) options
|
D | socketlayers.h | 6 #if defined(SOL_IP) || (defined(HAVE_DECL_SOL_IP) && HAVE_DECL_SOL_IP) 8 static_assert((SOL_IP) == (0), "SOL_IP != 0"); 11 # define SOL_IP 0 283 XLAT(SOL_IP),
|
D | socketlayers.in | 2 SOL_IP 0
|
/external/iptables/extensions/ |
D | libxt_set.h | 29 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req_version, &size); in get_version() 49 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byid() 79 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byname_only() 110 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byname()
|
/external/iputils/ |
D | tracepath.c | 150 if (cmsg->cmsg_level == SOL_IP) { in recverr() 395 if (setsockopt(fd, SOL_IP, IP_MTU_DISCOVER, &on, sizeof(on)) && in main() 397 setsockopt(fd, SOL_IP, IP_MTU_DISCOVER, &on, sizeof(on)))) { in main() 402 if (setsockopt(fd, SOL_IP, IP_RECVERR, &on, sizeof(on))) { in main() 406 if (setsockopt(fd, SOL_IP, IP_RECVTTL, &on, sizeof(on))) { in main() 422 if (setsockopt(fd, SOL_IP, IP_TTL, &on, sizeof(on))) { in main()
|
D | tracepath6.c | 189 case SOL_IP: in recverr() 514 if (setsockopt(fd, SOL_IP, IP_MTU_DISCOVER, &on, sizeof(on))) { in main() 519 if (setsockopt(fd, SOL_IP, IP_RECVERR, &on, sizeof(on))) { in main() 523 if (setsockopt(fd, SOL_IP, IP_RECVTTL, &on, sizeof(on))) { in main() 550 if (setsockopt(fd, SOL_IP, IP_TTL, &on, sizeof(on))) { in main()
|
D | ping.c | 109 } cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO}, 345 if (setsockopt(probe_fd, SOL_IP, IP_MULTICAST_IF, &imr, sizeof(imr)) == -1) { in main() 458 if (setsockopt(icmp_sock, SOL_IP, IP_MTU_DISCOVER, &pmtudisc, sizeof(pmtudisc)) == -1) { in main() 483 if (setsockopt(icmp_sock, SOL_IP, IP_RECVERR, (char *)&hold, sizeof(hold))) in main() 486 if (setsockopt(icmp_sock, SOL_IP, IP_RECVTTL, (char *)&hold, sizeof(hold))) in main() 488 if (setsockopt(icmp_sock, SOL_IP, IP_RETOPTS, (char *)&hold, sizeof(hold))) in main() 638 if (cmsg->cmsg_level == SOL_IP) { in receive_error_msg() 815 if (cmsg->cmsg_level != SOL_IP) in parse_reply()
|
/external/strace/tests/ |
D | msg_control.c | 46 #ifndef SOL_IP 47 # define SOL_IP 0 macro 543 cmsg->cmsg_level = SOL_IP; in test_ip_pktinfo() 573 cmsg->cmsg_level = SOL_IP; in test_ip_uint() 599 cmsg->cmsg_level = SOL_IP; in test_ip_uint8_t() 642 cmsg->cmsg_level = SOL_IP; in test_ip_opts() 681 cmsg->cmsg_level = SOL_IP; in test_ip_recverr() 723 cmsg->cmsg_level = SOL_IP; in test_ip_origdstaddr() 772 ARG_STR(SOL_IP)); in test_sol_ip() 773 test_unknown_type(mh, page, ARG_STR(SOL_IP), "IP_???"); in test_sol_ip()
|
D | group_req.c | 87 ARG_STR(SOL_IP), ARG_STR(MCAST_JOIN_GROUP), greq4, in main() 92 ARG_STR(SOL_IP), ARG_STR(MCAST_LEAVE_GROUP), greq4, in main()
|
D | ip_mreq.c | 76 ARG_STR(SOL_IP), ARG_STR(IP_ADD_MEMBERSHIP), in main() 82 ARG_STR(SOL_IP), ARG_STR(IP_DROP_MEMBERSHIP), in main()
|
/external/strace/tests-m32/ |
D | msg_control.c | 46 #ifndef SOL_IP 47 # define SOL_IP 0 macro 543 cmsg->cmsg_level = SOL_IP; in test_ip_pktinfo() 573 cmsg->cmsg_level = SOL_IP; in test_ip_uint() 599 cmsg->cmsg_level = SOL_IP; in test_ip_uint8_t() 642 cmsg->cmsg_level = SOL_IP; in test_ip_opts() 681 cmsg->cmsg_level = SOL_IP; in test_ip_recverr() 723 cmsg->cmsg_level = SOL_IP; in test_ip_origdstaddr() 772 ARG_STR(SOL_IP)); in test_sol_ip() 773 test_unknown_type(mh, page, ARG_STR(SOL_IP), "IP_???"); in test_sol_ip()
|
D | group_req.c | 87 ARG_STR(SOL_IP), ARG_STR(MCAST_JOIN_GROUP), greq4, in main() 92 ARG_STR(SOL_IP), ARG_STR(MCAST_LEAVE_GROUP), greq4, in main()
|
D | ip_mreq.c | 76 ARG_STR(SOL_IP), ARG_STR(IP_ADD_MEMBERSHIP), in main() 82 ARG_STR(SOL_IP), ARG_STR(IP_DROP_MEMBERSHIP), in main()
|
/external/strace/tests-mx32/ |
D | msg_control.c | 46 #ifndef SOL_IP 47 # define SOL_IP 0 macro 543 cmsg->cmsg_level = SOL_IP; in test_ip_pktinfo() 573 cmsg->cmsg_level = SOL_IP; in test_ip_uint() 599 cmsg->cmsg_level = SOL_IP; in test_ip_uint8_t() 642 cmsg->cmsg_level = SOL_IP; in test_ip_opts() 681 cmsg->cmsg_level = SOL_IP; in test_ip_recverr() 723 cmsg->cmsg_level = SOL_IP; in test_ip_origdstaddr() 772 ARG_STR(SOL_IP)); in test_sol_ip() 773 test_unknown_type(mh, page, ARG_STR(SOL_IP), "IP_???"); in test_sol_ip()
|
D | group_req.c | 87 ARG_STR(SOL_IP), ARG_STR(MCAST_JOIN_GROUP), greq4, in main() 92 ARG_STR(SOL_IP), ARG_STR(MCAST_LEAVE_GROUP), greq4, in main()
|
D | ip_mreq.c | 76 ARG_STR(SOL_IP), ARG_STR(IP_ADD_MEMBERSHIP), in main() 82 ARG_STR(SOL_IP), ARG_STR(IP_DROP_MEMBERSHIP), in main()
|
/external/ltp/testcases/kernel/syscalls/accept/ |
D | accept02.c | 51 SAFE_SETSOCKOPT(server_sockfd, SOL_IP, MCAST_JOIN_GROUP, in server_thread() 65 TEST(setsockopt(clone_server_sockfd, SOL_IP, MCAST_LEAVE_GROUP, in server_thread()
|
/external/iproute2/tc/ |
D | em_ipset.c | 84 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req_version, &size); in get_version() 103 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, req, &size); in do_getsockopt()
|
/external/ltp/testcases/network/sockets/ |
D | ltpClient.c | 500 if (setsockopt(rawSocket, SOL_IP, IP_TTL, &value, sizeof(value)) != 0) { in ping_network() 583 if (setsockopt(rawTraceSocket, SOL_IP, SO_ERROR, &flag, sizeof(flag)) != in ltp_traceroute() 593 (rawTraceSocket, SOL_IP, IP_TTL, &TimeToLive, in ltp_traceroute()
|