Home
last modified time | relevance | path

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

12

/openbmc/linux/net/ipv6/
H A Ddatagram.c532 put_cmsg(msg, SOL_IPV6, IPV6_RECVERR, sizeof(errhdr), &errhdr); in ipv6_recv_error()
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()
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()
709 put_cmsg(msg, SOL_IPV6, IPV6_2292HOPOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl()
713 put_cmsg(msg, SOL_IPV6, IPV6_2292DSTOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl()
721 put_cmsg(msg, SOL_IPV6, IPV6_2292DSTOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl()
[all …]
H A 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()
H A Draw.c1042 case SOL_IPV6: in rawv6_setsockopt()
1103 case SOL_IPV6: in rawv6_getsockopt()
/openbmc/linux/tools/testing/selftests/net/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dudpgso.c328 level = SOL_IPV6; in set_pmtu_discover()
347 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); in get_path_mtu()
H A Dudpgso_bench_tx.c160 case SOL_IPV6: in flush_cmsg()
559 level = SOL_IPV6; in set_pmtu_discover()
H A Dso_txtime.c456 cfg_errq_level = SOL_IPV6; in parse_opts()
H A Dmsg_zerocopy.c422 (cm->cmsg_level == SOL_IPV6 && cm->cmsg_type == IPV6_RECVERR) || in do_recv_completion()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dsockopt_qos_to_cc.c23 if (ctx->level != SOL_IPV6 || ctx->optname != IPV6_TCLASS) in sockopt_qos_to_cc()
H A Dtest_tcpbpf_kern.c114 rv = bpf_setsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, in bpf_testcb()
/openbmc/linux/samples/bpf/
H A Dtcp_tos_reflect_kern.c64 bpf_setsockopt(skops, SOL_IPV6, in bpf_basertt()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_qos_to_cc.c15 err = setsockopt(sock_fd, SOL_IPV6, IPV6_TCLASS, &buf, sizeof(buf)); in run_setsockopt_test()
H A Dsk_lookup.c166 err = setsockopt(fd, SOL_IPV6, IPV6_RECVORIGDSTADDR, &one, in make_server()
390 (cm->cmsg_level == SOL_IPV6 && in udp_recv_send()
/openbmc/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h350 #define SOL_IPV6 41 macro
/openbmc/linux/include/linux/
H A Dsocket.h350 #define SOL_IPV6 41 macro
/openbmc/linux/net/mptcp/
H A Dsockopt.c405 ret = tcp_setsockopt(ssk, SOL_IPV6, optname, optval, optlen); in mptcp_setsockopt_v6()
481 if (level == SOL_IPV6) { in mptcp_supported_sockopt()
884 if (level == SOL_IPV6) in mptcp_setsockopt()
/openbmc/linux/net/sunrpc/
H A Dsvcsock.c177 cmh->cmsg_level = SOL_IPV6; in svc_set_cmsg_data()
545 case SOL_IPV6: in svc_udp_get_dest_address()
/openbmc/qemu/io/
H A Dchannel-socket.c768 cm->cmsg_level != SOL_IPV6 && cm->cmsg_type != IPV6_RECVERR) { in qio_channel_socket_flush()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sock_addr.c1019 cmsg->cmsg_level = SOL_IPV6; in init_pktinfo()
/openbmc/linux/net/ipv4/
H A Dip_sockglue.c256 cmsg->cmsg_level == SOL_IPV6 && in ip_cmsg_send()
/openbmc/linux/net/core/
H A Dfilter.c5409 return ipv6_bpf_stub->ipv6_getsockopt(sk, SOL_IPV6, optname, in sol_ipv6_sockopt()
5413 return ipv6_bpf_stub->ipv6_setsockopt(sk, SOL_IPV6, optname, in sol_ipv6_sockopt()
5427 else if (IS_ENABLED(CONFIG_IPV6) && level == SOL_IPV6) in __bpf_setsockopt()
5459 else if (IS_ENABLED(CONFIG_IPV6) && level == SOL_IPV6) in __bpf_getsockopt()

12