Home
last modified time | relevance | path

Searched refs:SOL_IPV6 (Results 1 – 24 of 24) sorted by relevance

/Linux-v6.6/net/ipv6/
Ddatagram.c532 put_cmsg(msg, SOL_IPV6, IPV6_RECVERR, sizeof(errhdr), &errhdr); in ipv6_recv_error()
585 put_cmsg(msg, SOL_IPV6, IPV6_PATHMTU, sizeof(mtu_info), &mtu_info); in ipv6_recv_rxpmtu()
616 put_cmsg(msg, SOL_IPV6, IPV6_PKTINFO, in ip6_datagram_recv_common_ctl()
630 put_cmsg(msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); in ip6_datagram_recv_specific_ctl()
635 put_cmsg(msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in ip6_datagram_recv_specific_ctl()
641 put_cmsg(msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); in ip6_datagram_recv_specific_ctl()
647 put_cmsg(msg, SOL_IPV6, IPV6_HOPOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl()
673 put_cmsg(msg, SOL_IPV6, IPV6_DSTOPTS, len, ptr); in ip6_datagram_recv_specific_ctl()
679 put_cmsg(msg, SOL_IPV6, IPV6_RTHDR, len, ptr); in ip6_datagram_recv_specific_ctl()
701 put_cmsg(msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); in ip6_datagram_recv_specific_ctl()
[all …]
Dipv6_sockglue.c1009 if (level != SOL_IPV6) in ipv6_setsockopt()
1180 put_cmsg(&msg, SOL_IPV6, IPV6_PKTINFO, sizeof(src_info), &src_info); in do_ipv6_getsockopt()
1184 put_cmsg(&msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); in do_ipv6_getsockopt()
1189 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt()
1197 put_cmsg(&msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); in do_ipv6_getsockopt()
1201 put_cmsg(&msg, SOL_IPV6, IPV6_2292HOPLIMIT, sizeof(hlim), &hlim); in do_ipv6_getsockopt()
1206 put_cmsg(&msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); in do_ipv6_getsockopt()
1487 if (level != SOL_IPV6) in ipv6_getsockopt()
Draw.c1042 case SOL_IPV6: in rawv6_setsockopt()
1103 case SOL_IPV6: in rawv6_getsockopt()
/Linux-v6.6/tools/testing/selftests/net/
Dipv6_flowlabel.c79 cm->cmsg_level = SOL_IPV6; in do_send()
136 if (cm->cmsg_level != SOL_IPV6 || in do_recv()
188 if (setsockopt(fd, SOL_IPV6, IPV6_FLOWLABEL_MGR, &req, sizeof(req))) in flowlabel_get()
243 if (setsockopt(fdr, SOL_IPV6, IPV6_FLOWINFO, &one, sizeof(one))) in main()
259 if (setsockopt(fdt, SOL_IPV6, IPV6_FLOWINFO_SEND, &one, in main()
Dcmsg_sender.c248 SOL_IPV6, IPV6_DONTFRAG, &opt.v6.dontfrag); in cs_write_cmsg()
250 SOL_IPV6, IPV6_TCLASS, &opt.v6.tclass); in cs_write_cmsg()
252 SOL_IPV6, IPV6_HOPLIMIT, &opt.v6.hlimit); in cs_write_cmsg()
303 cmsg->cmsg_level = SOL_IPV6; in cs_write_cmsg()
364 (cmsg->cmsg_level == SOL_IPV6 && in cs_read_cmsg()
402 setsockopt(fd, SOL_IPV6, IPV6_DONTFRAG, in ca_set_sockopts()
406 setsockopt(fd, SOL_IPV6, IPV6_TCLASS, in ca_set_sockopts()
410 setsockopt(fd, SOL_IPV6, IPV6_UNICAST_HOPS, in ca_set_sockopts()
Dipv6_flowlabel_mgr.c61 return setsockopt(fd, SOL_IPV6, IPV6_FLOWLABEL_MGR, &req, sizeof(req)); in flowlabel_get()
71 return setsockopt(fd, SOL_IPV6, IPV6_FLOWLABEL_MGR, &req, sizeof(req)); in flowlabel_put()
Dnettest.c438 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); in set_recvpktinfo_v6()
462 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVERR, &one, sizeof(one)); in set_recverr_v6()
479 level = SOL_IPV6; in set_unicast_if()
537 if (setsockopt(sd, SOL_IPV6, IPV6_FREEBIND, &one, sizeof(one))) { in set_freebind()
601 if (setsockopt(sd, SOL_IPV6, IPV6_TCLASS, &dsfield, in set_dsfield()
923 } else if (cm->cmsg_level == SOL_IPV6 && in get_index_from_cmsg()
995 cm->cmsg_level = SOL_IPV6; in send_msg_cmsg()
1468 level = SOL_IPV6; in config_xfrm_policy()
Dtxtimestamp.c323 (cm->cmsg_level == SOL_IPV6 && in __recv_errmsg_cmsg()
340 } else if (cm->cmsg_level == SOL_IPV6 && in __recv_errmsg_cmsg()
553 if (setsockopt(fd, SOL_IPV6, IPV6_RECVPKTINFO, in do_test()
Dudpgso.c328 level = SOL_IPV6; in set_pmtu_discover()
347 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); in get_path_mtu()
Dudpgso_bench_tx.c160 case SOL_IPV6: in flush_cmsg()
559 level = SOL_IPV6; in set_pmtu_discover()
Dso_txtime.c456 cfg_errq_level = SOL_IPV6; in parse_opts()
Dmsg_zerocopy.c419 (cm->cmsg_level == SOL_IPV6 && cm->cmsg_type == IPV6_RECVERR) || in do_recv_completion()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dsockopt_qos_to_cc.c23 if (ctx->level != SOL_IPV6 || ctx->optname != IPV6_TCLASS) in sockopt_qos_to_cc()
Dtest_tcpbpf_kern.c114 rv = bpf_setsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, in bpf_testcb()
/Linux-v6.6/samples/bpf/
Dtcp_tos_reflect_kern.c64 bpf_setsockopt(skops, SOL_IPV6, in bpf_basertt()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockopt_qos_to_cc.c15 err = setsockopt(sock_fd, SOL_IPV6, IPV6_TCLASS, &buf, sizeof(buf)); in run_setsockopt_test()
Dsk_lookup.c167 err = setsockopt(fd, SOL_IPV6, IPV6_RECVORIGDSTADDR, &one, in make_server()
391 (cm->cmsg_level == SOL_IPV6 && in udp_recv_send()
/Linux-v6.6/net/mptcp/
Dsockopt.c406 ret = tcp_setsockopt(ssk, SOL_IPV6, optname, optval, optlen); in mptcp_setsockopt_v6()
482 if (level == SOL_IPV6) { in mptcp_supported_sockopt()
854 if (level == SOL_IPV6) in mptcp_setsockopt()
/Linux-v6.6/include/linux/
Dsocket.h350 #define SOL_IPV6 41 macro
/Linux-v6.6/tools/perf/trace/beauty/include/linux/
Dsocket.h350 #define SOL_IPV6 41 macro
/Linux-v6.6/net/sunrpc/
Dsvcsock.c177 cmh->cmsg_level = SOL_IPV6; in svc_set_cmsg_data()
545 case SOL_IPV6: in svc_udp_get_dest_address()
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sock_addr.c1019 cmsg->cmsg_level = SOL_IPV6; in init_pktinfo()
/Linux-v6.6/net/ipv4/
Dip_sockglue.c256 cmsg->cmsg_level == SOL_IPV6 && in ip_cmsg_send()
/Linux-v6.6/net/core/
Dfilter.c5320 return ipv6_bpf_stub->ipv6_getsockopt(sk, SOL_IPV6, optname, in sol_ipv6_sockopt()
5324 return ipv6_bpf_stub->ipv6_setsockopt(sk, SOL_IPV6, optname, in sol_ipv6_sockopt()
5338 else if (IS_ENABLED(CONFIG_IPV6) && level == SOL_IPV6) in __bpf_setsockopt()
5370 else if (IS_ENABLED(CONFIG_IPV6) && level == SOL_IPV6) in __bpf_getsockopt()