Home
last modified time | relevance | path

Searched refs:SOL_IP (Results 1 – 25 of 53) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dsockopt_multi.c67 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 …]
Dsockopt.c74 .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 …]
Dsockopt_sk.c26 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/
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_sk.c31 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/
Dgetsock_ip_options.in2 * Options specific to getsockopt(SOL_IP).
3 * Common {g,s}etsockopt(SOL_IP) options
Dsetsock_ip_options.in2 * Options specific to setsockopt(SOL_IP).
3 * Common {g,s}etsockopt(SOL_IP) options
Dsocketlayers.h6 #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),
Dsocketlayers.in2 SOL_IP 0
/external/iptables/extensions/
Dlibxt_set.h29 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/
Dtracepath.c150 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()
Dtracepath6.c189 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()
Dping.c109 } 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/
Dmsg_control.c46 #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()
Dgroup_req.c87 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()
Dip_mreq.c76 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/
Dmsg_control.c46 #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()
Dgroup_req.c87 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()
Dip_mreq.c76 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/
Dmsg_control.c46 #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()
Dgroup_req.c87 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()
Dip_mreq.c76 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/
Daccept02.c51 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/
Dem_ipset.c84 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/
DltpClient.c500 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()

123