| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A 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 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 149 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 168 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 180 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 188 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 217 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test() [all …]
|
| H A 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 …]
|
| H A D | sockopt_sk.c | 34 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen); in getsetsockopt() 42 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); in getsetsockopt() 57 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1); in getsetsockopt() 94 err = setsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, optlen); in getsetsockopt() 100 err = getsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, &optlen); in getsetsockopt()
|
| H A D | sk_lookup.c | 159 err = setsockopt(fd, SOL_IP, IP_RECVORIGDSTADDR, &one, in make_server() 390 if ((cm->cmsg_level == SOL_IP && in udp_recv_send()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | sockopt_sk.c | 35 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt() 60 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt() 110 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt() 143 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/um/drivers/ |
| H A D | umcast_user.c | 96 if (setsockopt(fd, SOL_IP, IP_MULTICAST_TTL, &pri->ttl, in umcast_open() 105 if (setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, in umcast_open() 126 if (setsockopt(fd, SOL_IP, IP_ADD_MEMBERSHIP, in umcast_open() 158 if (setsockopt(fd, SOL_IP, IP_DROP_MEMBERSHIP, in umcast_close()
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | ip_sockglue.c | 62 put_cmsg(msg, SOL_IP, IP_PKTINFO, sizeof(info), &info); in ip_cmsg_recv_pktinfo() 68 put_cmsg(msg, SOL_IP, IP_TTL, sizeof(int), &ttl); in ip_cmsg_recv_ttl() 73 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos); in ip_cmsg_recv_tos() 81 put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, in ip_cmsg_recv_opts() 101 put_cmsg(msg, SOL_IP, IP_RETOPTS, opt->optlen, opt->__data); in ip_cmsg_recv_retopts() 112 put_cmsg(msg, SOL_IP, IP_RECVFRAGSIZE, sizeof(val), &val); in ip_cmsg_recv_fragsize() 128 put_cmsg(msg, SOL_IP, IP_CHECKSUM, sizeof(__wsum), &csum); in ip_cmsg_recv_checksum() 145 put_cmsg(msg, SOL_IP, SCM_SECURITY, seclen, secdata); in ip_cmsg_recv_security() 168 put_cmsg(msg, SOL_IP, IP_ORIGDSTADDR, sizeof(sin), &sin); in ip_cmsg_recv_dstaddr() 276 if (cmsg->cmsg_level != SOL_IP) in ip_cmsg_send() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | tproxy.rst | 38 addresses. All you have to do is enable the (SOL_IP, IP_TRANSPARENT) socket 44 setsockopt(fd, SOL_IP, IP_TRANSPARENT, &value, sizeof(value)); 76 Note that for this to work you'll have to modify the proxy to enable (SOL_IP,
|
| H A D | msg_zerocopy.rst | 193 if (cm->cmsg_level != SOL_IP &&
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | tcp_tos_reflect_kern.c | 57 bpf_setsockopt(skops, SOL_IP, IP_TOS, in bpf_basertt()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A D | nettest.c | 368 rc = setsockopt(sd, SOL_IP, IP_PKTINFO, &one, sizeof(one)); in set_pktinfo_v4() 392 rc = setsockopt(sd, SOL_IP, IP_RECVERR, &one, sizeof(one)); in set_recverr_v4() 414 int level = SOL_IP; in set_unicast_if() 435 rc = setsockopt(sd, SOL_IP, IP_MULTICAST_IF, &mreq, sizeof(mreq)); in set_multicast_if() 612 if (cm->cmsg_level == SOL_IP && in get_index_from_cmsg() 680 cm->cmsg_level = SOL_IP; in send_msg_cmsg()
|
| H A D | txtimestamp.c | 321 } else if ((cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg() 335 } else if (cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg() 557 if (setsockopt(fd, SOL_IP, IP_PKTINFO, in do_test()
|
| H A D | udpgso.c | 324 level = SOL_IP; in set_pmtu_discover() 345 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu()
|
| H A D | udpgso_bench_tx.c | 158 case SOL_IP: in flush_cmsg() 533 level = SOL_IP; in set_pmtu_discover()
|
| H A D | so_txtime.c | 386 cfg_errq_level = SOL_IP; in main()
|
| H A D | timestamping.c | 433 if (setsockopt(sock, SOL_IP, IP_PKTINFO, in main()
|
| H A D | msg_zerocopy.c | 418 if (!((cm->cmsg_level == SOL_IP && cm->cmsg_type == IP_RECVERR) || in do_recv_completion()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/bits/ |
| H A D | in.h | 133 #define SOL_IP 0 macro
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/bits/ |
| H A D | in.h | 133 #define SOL_IP 0 macro
|
| /OK3568_Linux_fs/kernel/tools/perf/trace/beauty/include/linux/ |
| H A D | socket.h | 326 #define SOL_IP 0 macro
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | socket.h | 326 #define SOL_IP 0 macro
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | ipv6_sockglue.c | 1004 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 1478 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
|
| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | svcsock.c | 161 cmh->cmsg_level = SOL_IP; in svc_set_cmsg_data() 412 case SOL_IP: in svc_udp_get_dest_address()
|
| /OK3568_Linux_fs/kernel/net/rds/ |
| H A D | recv.c | 652 return sock_recv_errqueue(sk, msg, size, SOL_IP, IP_RECVERR); in rds_recvmsg()
|