Home
last modified time | relevance | path

Searched refs:ipv4 (Results 1 – 13 of 13) sorted by relevance

/smoltcp-0.9.1/.github/workflows/
Dtest.yml32 - std proto-ipv4
37 - std medium-ethernet proto-ipv4 proto-ipv4-fragmentation socket-raw socket-dns
38 - std medium-ethernet proto-ipv4 proto-igmp socket-raw socket-dns
39 - std medium-ethernet proto-ipv4 socket-udp socket-tcp socket-dns
40 - std medium-ethernet proto-ipv4 proto-dhcpv4 socket-udp
43 - std medium-ethernet medium-ip proto-ipv4 socket-icmp socket-tcp
47 - std medium-ip proto-ipv4 proto-ipv6 socket-tcp socket-udp
50 …- std medium-ethernet medium-ip medium-ieee802154 proto-ipv4 proto-ipv6 socket-raw socket-udp sock…
55 … features: alloc medium-ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp
/smoltcp-0.9.1/src/iface/interface/
Dipv4.rs337 let ip_len = (frag.packet_len - frag.sent_bytes + frag.ipv4.repr.buffer_len()).min(mtu_max); in dispatch_ipv4_frag()
338 let payload_len = ip_len - frag.ipv4.repr.buffer_len(); in dispatch_ipv4_frag()
341 frag.ipv4.repr.payload_len = payload_len; in dispatch_ipv4_frag()
357 frame.set_dst_addr(frag.ipv4.dst_hardware_addr); in dispatch_ipv4_frag()
370 emit_ethernet(&IpRepr::Ipv4(frag.ipv4.repr), tx_buffer); in dispatch_ipv4_frag()
375 Ipv4Packet::new_unchecked(&mut tx_buffer[..frag.ipv4.repr.buffer_len()]); in dispatch_ipv4_frag()
376 frag.ipv4.repr.emit(&mut packet, &caps.checksum); in dispatch_ipv4_frag()
377 packet.set_ident(frag.ipv4.ident); in dispatch_ipv4_frag()
380 packet.set_frag_offset(frag.ipv4.frag_offset); in dispatch_ipv4_frag()
382 if caps.checksum.ipv4.tx() { in dispatch_ipv4_frag()
[all …]
Dmod.rs14 mod ipv4; module
87 ipv4: Ipv4Fragmenter, field
131 ipv4: Ipv4Fragmenter { in new()
176 self.ipv4.repr = Ipv4Repr { in reset()
185 self.ipv4.dst_hardware_addr = EthernetAddress::default(); in reset()
1128 ipv4: crate::phy::Checksum::Both, in mock()
1784 frag.ipv4.dst_hardware_addr = dst_hardware_addr; in dispatch_ip()
1792 frag.ipv4.repr = repr; in dispatch_ip()
1803 frag.ipv4.ident = ipv4_id; in dispatch_ip()
1809 if caps.checksum.ipv4.tx() { in dispatch_ip()
[all …]
/smoltcp-0.9.1/
DCargo.toml47 "proto-ipv4" = []
48 "proto-ipv4-fragmentation" = ["proto-ipv4", "_proto-fragmentation"]
49 "proto-igmp" = ["proto-ipv4"]
50 "proto-dhcpv4" = ["proto-ipv4"]
71 "proto-ipv4", "proto-igmp", "proto-dhcpv4", "proto-ipv6", "proto-dns",
72 "proto-ipv4-fragmentation", "proto-sixlowpan-fragmentation",
225 required-features = ["std", "phy-raw_socket", "proto-ipv4"]
229 required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "…
233 required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "…
237 required-features = ["std", "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "…
[all …]
DREADME.md206 ### Features `proto-ipv4` and `proto-ipv6`
304 sudo sysctl net.ipv4.ip_forward=1
523 …example still requires the `alloc` feature to run, as well as `log`, `proto-ipv4` and `socket-tcp`.
528 cargo run --example loopback --no-default-features --features="log proto-ipv4 socket-tcp alloc"
DCHANGELOG.md148 - iface: check for ipv4 subnet broadcast addrs everywhere ([#462](https://github.com/smoltcp-rs/smo…
161 - wire/ipv4: make some functions const ([420](https://github.com/smoltcp-rs/smoltcp/pull/420))
/smoltcp-0.9.1/src/wire/
Dipv6.rs9 use crate::wire::ipv4;
184 pub fn as_ipv4(&self) -> Option<ipv4::Address> { in as_ipv4()
186 Some(ipv4::Address::from_bytes( in as_ipv4()
310 impl From<ipv4::Address> for Address {
311 fn from(address: ipv4::Address) -> Self { in from()
753 use crate::wire::ipv4::Address as Ipv4Address;
901 let ipv4 = Ipv4Address::new(192, 168, 1, 1); in test_as_ipv4() localVariable
902 assert_eq!(Some(ipv4), Address::from(ipv4).as_ipv4()); in test_as_ipv4()
Dip.rs198 ::std::net::IpAddr::V4(ipv4) => Address::Ipv4(ipv4.into()), in from()
209 Address::Ipv4(ipv4) => ::std::net::IpAddr::V4(ipv4.into()), in from()
218 fn from(ipv4: ::std::net::Ipv4Addr) -> Address { in from()
219 Address::Ipv4(ipv4.into()) in from()
Dmod.rs100 mod ipv4; module
171 pub use self::ipv4::{
Dipv4.rs641 if checksum_caps.ipv4.rx() && !packet.verify_checksum() { in parse()
693 if checksum_caps.ipv4.tx() { in emit()
/smoltcp-0.9.1/src/phy/
Dmod.rs171 pub ipv4: Checksum, field
185 ipv4: Checksum::None, in ignored()
/smoltcp-0.9.1/src/
Dparsers.rs304 Some(ipv4) => return Ok(IpAddress::Ipv4(ipv4)), in accept_ip()
361 Some(ipv4) => return Ok(ipv4), in accept_ip_endpoint()
/smoltcp-0.9.1/src/socket/
Draw.rs342 if _checksum_caps.ipv4.tx() { in dispatch()
590 ipv4,