Home
last modified time | relevance | path

Searched refs:sendto (Results 1 – 25 of 89) sorted by relevance

1234

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dip_check_defrag.c116 err = sendto(client, frag_0, sizeof(frag_0), 0, saddr_p, saddr_len); in send_frags()
120 err = sendto(client, frag_1, sizeof(frag_1), 0, saddr_p, saddr_len); in send_frags()
124 err = sendto(client, frag_2, sizeof(frag_2), 0, saddr_p, saddr_len); in send_frags()
144 err = sendto(client, frag6_0, sizeof(frag6_0), 0, saddr_p, saddr_len); in send_frags6()
148 err = sendto(client, frag6_1, sizeof(frag6_1), 0, saddr_p, saddr_len); in send_frags6()
152 err = sendto(client, frag6_2, sizeof(frag6_2), 0, saddr_p, saddr_len); in send_frags6()
257 len = sendto(srv_fd, buf, len, 0, (struct sockaddr *)&caddr, caddr_len); in test_bpf_ip_check_defrag_ok()
Dcrypto_sanity.c150 err = sendto(sockfd, plain_text, sizeof(plain_text), 0, (void *)&addr, addrlen); in test_crypto_sanity()
175 err = sendto(sockfd, afalg_dst, sizeof(afalg_dst), 0, (void *)&addr, addrlen); in test_crypto_sanity()
Ddecap_sanity.c60 err = sendto(sockfd, buf, sizeof(buf), 0, (void *)&addr, addrlen); in test_decap_sanity()
Dcgroup_ancestor.c43 n = sendto(sock, buf, sizeof(buf), 0, (const struct sockaddr *)&addr, in send_datagram()
Dxdp_flowtable.c50 n = sendto(sock, buf, sizeof(buf), MSG_NOSIGNAL | MSG_CONFIRM, in send_udp_traffic()
Dxdp_metadata.c213 ret = sendto(xsk_socket__fd(xsk->socket), NULL, 0, MSG_DONTWAIT, NULL, 0); in generate_packet()
236 err = sendto(sock_fd, udp_payload, UDP_PAYLOAD_BYTES, MSG_DONTWAIT, in generate_packet_inet()
/linux-6.12.1/tools/testing/selftests/net/
Dsk_bind_sendto_listen.c37 if (sendto(fd1, NULL, 0, MSG_FASTOPEN, (struct sockaddr *)&bind_addr, in main()
59 if (sendto(fd2, NULL, 0, MSG_FASTOPEN, (struct sockaddr *)&bind_addr, in main()
Dip_defrag.c194 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_fragment()
315 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_udp_frags()
Dtxring_overwrite.c135 ret = sendto(fdt, NULL, 0, 0, NULL, 0); in send_pkt()
/linux-6.12.1/tools/testing/selftests/net/netfilter/
Dconntrack_reverse_clash.c96 if (sendto(s1, buf, LEN, 0, (struct sockaddr *)&sa2, sizeof(sa2)) != LEN) in main()
105 if (sendto(s2, buf, LEN, 0, (struct sockaddr *)&sa1, sizeof(sa1)) != LEN) in main()
Dsctp_collision.c67 ret = sendto(sd, buf, strlen(buf) + 1, 0, (struct sockaddr *)&daddr, len); in main()
83 ret = sendto(sd, buf, strlen(buf) + 1, 0, (struct sockaddr *)&daddr, len); in main()
Daudit_logread.c70 ret = sendto(fd, &msg, msg.nlh.nlmsg_len, 0, in audit_send()
/linux-6.12.1/tools/testing/selftests/net/packetdrill/
Dtcp_zerocopy_fastopen-client.pkt17 …+0 sendto(3, ..., 500, MSG_FASTOPEN|MSG_ZEROCOPY, ..., ...) = -1 EINPROGRESS (Operation now in pro…
38 +0 sendto(5, ..., 500, MSG_FASTOPEN|MSG_ZEROCOPY, ..., ...) = 500
Dtcp_zerocopy_fastopen-server.pkt25 +0 sendto(4, ..., 1000, MSG_ZEROCOPY, ..., ...) = 1000
/linux-6.12.1/Documentation/networking/
Dj1939.rst187 socket or use ``send(2)``, ``sendto(2)``, ``sendmsg(2)`` and the ``recv*()`` counterpart
196 to ``bind(2)``, ``connect(2)``, ``sendto(2)`` and ``recvfrom(2)``. A ``write(2)`` with size 4 will
245 remote address from ``connect(2)``. Use ``sendto(2)`` to overwrite the destination
307 ``send(2)``, ``sendto(2)`` and ``sendmsg(2)`` take a 'flags' argument. Currently
399 /* Afterwards do a sendto(2) with data set to the NAME (Little Endian). If the
403 sendto(sock, dat, sizeof(dat), 0, (const struct sockaddr *)&saddr, sizeof(saddr));
445 at this point we can use only ``sendto(2)`` or ``sendmsg(2)``.
460 sendto(sock, dat, sizeof(dat), 0, (const struct sockaddr *)&saddr, sizeof(saddr));
Dmctp.rst123 ``sendto()``, ``sendmsg()``, ``send()`` : transmit an MCTP message
126 An MCTP message is transmitted using one of the ``sendto()``, ``sendmsg()`` or
127 ``send()`` syscalls. Using ``sendto()`` as the primary example:
146 len = sendto(sd, buf, sizeof(buf), 0,
157 message buffer passed to ``sendto()``. If a message integrity check is to be
/linux-6.12.1/arch/um/drivers/
Dmconsole_user.c158 n = sendto(req->originating_fd, &reply, len, 0, in mconsole_reply_len()
213 n = sendto(notify_sock, &packet, len, 0, (struct sockaddr *) &target, in mconsole_notify()
Dnet_user.c155 CATCH_EINTR(n = sendto(fd, buf, len, 0, (struct sockaddr *) to, in net_sendto()
/linux-6.12.1/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst107 …- **sendmsg4** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected udp4 socket (since 4.…
108 …- **sendmsg6** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected udp6 socket (since 4.…
109 …- **sendmsg_unix** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected unix socket (sinc…
/linux-6.12.1/tools/testing/selftests/landlock/
Dscoped_abstract_unix_test.c741 err = sendto(dgram_pathname_socket, "c", 1, 0, in TEST_F()
769 err = sendto(dgram_abstract_socket, "f", 1, 0, in TEST_F()
916 ASSERT_EQ(1, sendto(client_unconn_socket, ".", 1, 0, in TEST()
930 ASSERT_EQ(-1, sendto(client_unconn_socket, ".", 1, 0, in TEST()
1015 ASSERT_EQ(-1, sendto(connected_socket, ".", 1, 0, in TEST()
1020 ASSERT_EQ(-1, sendto(non_connected_socket, ".", 1, 0, in TEST()
/linux-6.12.1/drivers/rpmsg/
Drpmsg_internal.h69 int (*sendto)(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); member
Drpmsg_core.c189 if (!ept->ops->sendto) in rpmsg_sendto()
192 return ept->ops->sendto(ept, data, len, dst); in rpmsg_sendto()
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/
Dicmps-accept.c220 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp_interfere4()
334 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp6_interfere()
Dicmps-discard.c220 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp_interfere4()
334 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp6_interfere()
/linux-6.12.1/samples/bpf/
Dtest_overhead_user.c82 if (sendto(fd, buf, strlen(buf), 0, in test_fib_table_lookup()

1234