/smoltcp-0.9.1/src/wire/ |
D | ipv6fragment.rs | 6 pub use super::IpProtocol as Protocol; 73 pub fn next_header(&self) -> Protocol { in next_header() argument 75 Protocol::from(data[field::NXT_HDR]) in next_header() 103 pub fn set_next_header(&mut self, value: Protocol) { in set_next_header() argument 165 pub next_header: Protocol, 242 assert_eq!(header.next_header(), Protocol::Tcp); in test_header_deconstruct() 248 assert_eq!(header.next_header(), Protocol::Tcp); in test_header_deconstruct() 261 next_header: Protocol::Tcp, in test_repr_parse_valid() 273 next_header: Protocol::Tcp, in test_repr_parse_valid() 284 next_header: Protocol::Tcp, in test_repr_emit() [all …]
|
D | ipv6hopbyhop.rs | 4 pub use super::IpProtocol as Protocol; 97 pub fn next_header(&self) -> Protocol { in next_header() argument 99 Protocol::from(data[field::NXT_HDR]) in next_header() 123 pub fn set_next_header(&mut self, value: Protocol) { in set_next_header() argument 164 pub next_header: Protocol, 257 assert_eq!(header.next_header(), Protocol::Tcp); in test_header_deconstruct() 262 assert_eq!(header.next_header(), Protocol::Tcp); in test_header_deconstruct() 320 next_header: Protocol::Tcp, in test_repr_parse_valid() 331 next_header: Protocol::Tcp, in test_repr_parse_valid() 341 next_header: Protocol::Tcp, in test_repr_emit() [all …]
|
D | ipv6routing.rs | 4 use crate::wire::IpProtocol as Protocol; 193 pub fn next_header(&self) -> Protocol { in next_header() argument 195 Protocol::from(data[field::NXT_HDR]) in next_header() 276 pub fn set_next_header(&mut self, value: Protocol) { in set_next_header() argument 404 next_header: Protocol, 414 next_header: Protocol, 552 next_header: Protocol::Tcp, 567 next_header: Protocol::Tcp, 586 next_header: Protocol::Tcp, 614 assert_eq!(header.next_header(), Protocol::Tcp); in test_header_deconstruct() [all …]
|
D | ip.rs | 50 pub enum Protocol(u8) { 64 impl fmt::Display for Protocol { implementation 67 Protocol::HopByHop => write!(f, "Hop-by-Hop"), in fmt() 68 Protocol::Icmp => write!(f, "ICMP"), in fmt() 69 Protocol::Igmp => write!(f, "IGMP"), in fmt() 70 Protocol::Tcp => write!(f, "TCP"), in fmt() 71 Protocol::Udp => write!(f, "UDP"), in fmt() 72 Protocol::Ipv6Route => write!(f, "IPv6-Route"), in fmt() 73 Protocol::Ipv6Frag => write!(f, "IPv6-Frag"), in fmt() 74 Protocol::Icmpv6 => write!(f, "ICMPv6"), in fmt() [all …]
|
D | arp.rs | 6 pub use super::EthernetProtocol as Protocol; 117 pub fn protocol_type(&self) -> Protocol { in protocol_type() argument 120 Protocol::from(raw) in protocol_type() 180 pub fn set_protocol_type(&mut self, value: Protocol) { in set_protocol_type() argument 280 (Hardware::Ethernet, Protocol::Ipv4, 6, 4) => Ok(Repr::EthernetIpv4 { in parse() 309 packet.set_protocol_type(Protocol::Ipv4); in emit() 398 assert_eq!(packet.protocol_type(), Protocol::Ipv4); in test_deconstruct() 419 packet.set_protocol_type(Protocol::Ipv4); in test_construct()
|
D | ipv6.rs | 11 pub use super::IpProtocol as Protocol; 526 pub fn next_header(&self) -> Protocol { in next_header() argument 528 Protocol::from(data[field::NXT_HDR]) in next_header() 603 pub fn set_next_header(&mut self, value: Protocol) { in set_next_header() argument 665 pub next_header: Protocol, 749 use super::{Packet, Protocol, Repr}; 1082 next_header: Protocol::Udp, in packet_repr() 1097 assert_eq!(packet.next_header(), Protocol::Udp); in test_packet_deconstruction() 1126 packet.set_next_header(Protocol::Udp); in test_packet_construction()
|
D | ipv4.rs | 8 pub use super::IpProtocol as Protocol; 35 protocol: Protocol, 422 pub fn next_header(&self) -> Protocol { in next_header() argument 424 Protocol::from(data[field::PROTOCOL]) in next_header() 568 pub fn set_next_header(&mut self, value: Protocol) { in set_next_header() argument 625 pub next_header: Protocol, 821 assert_eq!(packet.next_header(), Protocol::Icmp); in test_deconstruct() 844 packet.set_next_header(Protocol::Icmp); in test_construct() 888 next_header: Protocol::Icmp, in packet_repr()
|
D | mod.rs | 166 ListenEndpoint as IpListenEndpoint, Protocol as IpProtocol, Repr as IpRepr,
|
D | sixlowpan.rs | 1971 crate::wire::ip::Protocol::Udp, in parse() 2024 crate::wire::ip::Protocol::Udp, in emit()
|