Home
last modified time | relevance | path

Searched refs:udp (Results 1 – 15 of 15) sorted by relevance

/smoltcp-0.9.1/.github/workflows/
Dtest.yml35 - std medium-ethernet phy-raw_socket proto-ipv6 socket-udp socket-dns
36 - std medium-ethernet phy-tuntap_interface proto-ipv6 socket-udp
39 - std medium-ethernet proto-ipv4 socket-udp socket-tcp socket-dns
40 - std medium-ethernet proto-ipv4 proto-dhcpv4 socket-udp
41 - std medium-ethernet medium-ip medium-ieee802154 proto-ipv6 socket-udp socket-dns
45 - std medium-ieee802154 proto-sixlowpan socket-udp
46 - std medium-ieee802154 proto-sixlowpan proto-sixlowpan-fragmentation socket-udp
47 - std medium-ip proto-ipv4 proto-ipv6 socket-tcp socket-udp
50 …hernet medium-ip medium-ieee802154 proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-i…
55 … features: alloc medium-ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp
[all …]
/smoltcp-0.9.1/examples/
Dmulticast.rs7 use smoltcp::socket::{raw, udp};
74 let udp_rx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY; 4], vec![0; 1024]); in main()
76 let udp_tx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 0]); in main()
77 let udp_socket = udp::Socket::new(udp_rx_buffer, udp_tx_buffer); in main()
110 let socket = sockets.get_mut::<udp::Socket>(udp_handle); in main()
Dsixlowpan.rs52 use smoltcp::socket::udp;
87 let udp_rx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 1280]); in main()
88 let udp_tx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 1280]); in main()
89 let udp_socket = udp::Socket::new(udp_rx_buffer, udp_tx_buffer); in main()
109 let socket = sockets.get_mut::<udp::Socket>(udp_handle); in main()
Dserver.rs9 use smoltcp::socket::{tcp, udp};
55 let udp_rx_buffer = udp::PacketBuffer::new( in main()
56 vec![udp::PacketMetadata::EMPTY, udp::PacketMetadata::EMPTY], in main()
59 let udp_tx_buffer = udp::PacketBuffer::new( in main()
60 vec![udp::PacketMetadata::EMPTY, udp::PacketMetadata::EMPTY], in main()
63 let udp_socket = udp::Socket::new(udp_rx_buffer, udp_tx_buffer); in main()
94 let socket = sockets.get_mut::<udp::Socket>(udp_handle); in main()
/smoltcp-0.9.1/
DCargo.toml12 keywords = ["ip", "tcp", "udp", "ethernet", "network"]
58 "socket-udp" = ["socket"]
73 …"socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4", "socket-dns", "socket-md…
237 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
241 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"]
249 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-igmp", "socket-udp"]
253 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"]
261 …um-ieee802154", "phy-raw_socket", "proto-sixlowpan", "proto-sixlowpan-fragmentation", "socket-udp"]
265 …um-ieee802154", "phy-raw_socket", "proto-sixlowpan", "proto-sixlowpan-fragmentation", "socket-udp"]
DCHANGELOG.md37 - socket: Add send_with to udp, raw, and icmp sockets. These methods enable reserving a packet buff…
53 - socket/udp: accept packets with checksum field set to `0`, since that means the checksum is not c…
179 - udp,raw,icmp: Fix packet buffer panic caused by large payload ([332](https://github.com/smoltcp-r…
DREADME.md200 ### Features `socket-raw`, `socket-udp`, `socket-tcp`, `socket-icmp`, `socket-dhcpv4`, `socket-dns`
/smoltcp-0.9.1/src/iface/interface/
Dtests.rs429 let rx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 15]); in test_handle_udp_broadcast()
430 let tx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 15]); in test_handle_udp_broadcast()
432 let udp_socket = udp::Socket::new(rx_buffer, tx_buffer); in test_handle_udp_broadcast()
467 let socket = sockets.get_mut::<udp::Socket>(socket_handle); in test_handle_udp_broadcast()
496 let socket = sockets.get_mut::<udp::Socket>(socket_handle); in test_handle_udp_broadcast()
1278 let udp_rx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 15]); in test_raw_socket_with_udp_socket()
1279 let udp_tx_buffer = udp::PacketBuffer::new(vec![udp::PacketMetadata::EMPTY], vec![0; 15]); in test_raw_socket_with_udp_socket()
1280 let udp_socket = udp::Socket::new(udp_rx_buffer, udp_tx_buffer); in test_raw_socket_with_udp_socket()
1284 let socket = sockets.get_mut::<udp::Socket>(udp_socket_handle); in test_raw_socket_with_udp_socket()
1355 let socket = sockets.get_mut::<udp::Socket>(udp_socket_handle); in test_raw_socket_with_udp_socket()
[all …]
Dsixlowpan.rs240 let mut udp = UdpPacket::new_unchecked( in decompress_sixlowpan() localVariable
244 udp_repr.0.emit_header(&mut udp, ipv6_repr.payload_len - 8); in decompress_sixlowpan()
Dmod.rs1130 udp: crate::phy::Checksum::Both, in mock()
1368 .filter_map(|i| udp::Socket::downcast_mut(&mut i.socket)) in process_udp()
/smoltcp-0.9.1/src/socket/
Dmod.rs28 pub mod udp; module
65 Udp(udp::Socket<'a>),
135 from_socket!(udp::Socket<'a>, Udp);
/smoltcp-0.9.1/src/phy/
Dmod.rs172 pub udp: Checksum, field
186 udp: Checksum::None, in ignored()
/smoltcp-0.9.1/src/wire/
Dmod.rs126 mod udp; module
239 pub use self::udp::{Packet as UdpPacket, Repr as UdpRepr, HEADER_LEN as UDP_HEADER_LEN};
Dudp.rs233 if checksum_caps.udp.rx() && !packet.verify_checksum(src_addr, dst_addr) { in parse()
285 if checksum_caps.udp.tx() { in emit()
Dsixlowpan.rs1404 udp::Repr as UdpRepr,
1965 if checksum_caps.udp.rx() { in parse()
2098 let udp = UdpNhcRepr(UdpRepr { in udp_emit() localVariable
2108 let len = udp.header_len() + payload.len(); in udp_emit()
2111 udp.emit(&mut packet, &src_addr, &dst_addr, payload.len(), |buf| { in udp_emit()