Home
last modified time | relevance | path

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

/Linux-v5.10/net/ipv6/
Ddatagram.c525 put_cmsg(msg, SOL_IPV6, IPV6_RECVERR, sizeof(errhdr), &errhdr); in ipv6_recv_error()
578 put_cmsg(msg, SOL_IPV6, IPV6_PATHMTU, sizeof(mtu_info), &mtu_info); in ipv6_recv_rxpmtu()
609 put_cmsg(msg, SOL_IPV6, IPV6_PKTINFO, in ip6_datagram_recv_common_ctl()
623 put_cmsg(msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); in ip6_datagram_recv_specific_ctl()
628 put_cmsg(msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in ip6_datagram_recv_specific_ctl()
634 put_cmsg(msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); in ip6_datagram_recv_specific_ctl()
640 put_cmsg(msg, SOL_IPV6, IPV6_HOPOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl()
666 put_cmsg(msg, SOL_IPV6, IPV6_DSTOPTS, len, ptr); in ip6_datagram_recv_specific_ctl()
672 put_cmsg(msg, SOL_IPV6, IPV6_RTHDR, len, ptr); in ip6_datagram_recv_specific_ctl()
694 put_cmsg(msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); in ip6_datagram_recv_specific_ctl()
[all …]
Dipv6_sockglue.c1000 if (level != SOL_IPV6) in ipv6_setsockopt()
1167 put_cmsg(&msg, SOL_IPV6, IPV6_PKTINFO, sizeof(src_info), &src_info); in do_ipv6_getsockopt()
1171 put_cmsg(&msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); in do_ipv6_getsockopt()
1176 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt()
1184 put_cmsg(&msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); in do_ipv6_getsockopt()
1188 put_cmsg(&msg, SOL_IPV6, IPV6_2292HOPLIMIT, sizeof(hlim), &hlim); in do_ipv6_getsockopt()
1193 put_cmsg(&msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); in do_ipv6_getsockopt()
1474 if (level != SOL_IPV6) in ipv6_getsockopt()
Draw.c1075 case SOL_IPV6: in rawv6_setsockopt()
1136 case SOL_IPV6: in rawv6_getsockopt()
/Linux-v5.10/tools/testing/selftests/net/
Dipv6_flowlabel.c56 cm->cmsg_level = SOL_IPV6; in do_send()
110 if (cm->cmsg_level != SOL_IPV6 || in do_recv()
160 if (setsockopt(fd, SOL_IPV6, IPV6_FLOWLABEL_MGR, &req, sizeof(req))) in flowlabel_get()
206 if (setsockopt(fdr, SOL_IPV6, IPV6_FLOWINFO, &one, sizeof(one))) in main()
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()
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()
Dnettest.c380 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); in set_recvpktinfo_v6()
404 rc = setsockopt(sd, SOL_IPV6, IPV6_RECVERR, &one, sizeof(one)); in set_recverr_v6()
421 level = SOL_IPV6; in set_unicast_if()
619 } else if (cm->cmsg_level == SOL_IPV6 && in get_index_from_cmsg()
691 cm->cmsg_level = SOL_IPV6; in send_msg_cmsg()
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.c159 case SOL_IPV6: in flush_cmsg()
531 level = SOL_IPV6; in set_pmtu_discover()
Dso_txtime.c373 cfg_errq_level = SOL_IPV6; in main()
Dmsg_zerocopy.c419 (cm->cmsg_level == SOL_IPV6 && cm->cmsg_type == IPV6_RECVERR) || in do_recv_completion()
/Linux-v5.10/samples/bpf/
Dtcp_tos_reflect_kern.c64 bpf_setsockopt(skops, SOL_IPV6, in bpf_basertt()
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dtest_tcpbpf_kern.c135 rv = bpf_setsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, in bpf_testcb()
/Linux-v5.10/include/linux/
Dsocket.h330 #define SOL_IPV6 41 macro
/Linux-v5.10/tools/perf/trace/beauty/include/linux/
Dsocket.h330 #define SOL_IPV6 41 macro
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c168 err = setsockopt(fd, SOL_IPV6, IPV6_RECVORIGDSTADDR, &one, in make_server()
350 (cm->cmsg_level == SOL_IPV6 && in udp_recv_send()
/Linux-v5.10/net/sunrpc/
Dsvcsock.c174 cmh->cmsg_level = SOL_IPV6; in svc_set_cmsg_data()
414 case SOL_IPV6: in svc_udp_get_dest_address()
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_sock_addr.c1244 cmsg->cmsg_level = SOL_IPV6; in init_pktinfo()
/Linux-v5.10/net/mptcp/
Dprotocol.c2232 ret = tcp_setsockopt(ssock->sk, SOL_IPV6, optname, optval, optlen); in mptcp_setsockopt_v6()
2266 if (level == SOL_IPV6) in mptcp_setsockopt()
/Linux-v5.10/net/ipv4/
Dip_sockglue.c254 cmsg->cmsg_level == SOL_IPV6 && in ip_cmsg_send()
/Linux-v5.10/net/core/
Dfilter.c4806 } else if (level == SOL_IPV6) { in _bpf_setsockopt()
4972 } else if (level == SOL_IPV6) { in _bpf_getsockopt()