/smoltcp-0.9.1/src/socket/ |
D | icmp.rs | 16 use crate::wire::{IpAddress, IpListenEndpoint, IpProtocol, IpRepr}; 372 pub(crate) fn accepts(&self, cx: &mut Context, ip_repr: &IpRepr, icmp_repr: &IcmpRepr) -> bool { in accepts() argument 441 pub(crate) fn process(&mut self, _cx: &mut Context, ip_repr: &IpRepr, icmp_repr: &IcmpRepr) { in process() argument 485 F: FnOnce(&mut Context, (IpRepr, IcmpRepr)) -> Result<(), E>, in dispatch() argument 518 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in dispatch() 555 let ip_repr = IpRepr::Ipv6(Ipv6Repr { in dispatch() 631 static LOCAL_IPV4_REPR: IpRepr = IpRepr::Ipv4(Ipv4Repr { 639 static REMOTE_IPV4_REPR: IpRepr = IpRepr::Ipv4(Ipv4Repr { 732 IpRepr::Ipv4(Ipv4Repr { in test_set_hop_limit_v4() 826 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_accepts_udp() [all …]
|
D | udp.rs | 10 use crate::wire::{IpEndpoint, IpListenEndpoint, IpProtocol, IpRepr, UdpRepr}; 373 pub(crate) fn accepts(&self, _cx: &mut Context, ip_repr: &IpRepr, repr: &UdpRepr) -> bool { in accepts() argument 391 ip_repr: &IpRepr, in process() argument 426 F: FnOnce(&mut Context, (IpRepr, UdpRepr, &[u8])) -> Result<(), E>, in dispatch() argument 458 let ip_repr = IpRepr::new( in dispatch() 490 use crate::wire::{IpRepr, UdpRepr}; 510 use IpRepr::Ipv4 as IpReprIpvX; 518 use IpRepr::Ipv6 as IpReprIpvX; 541 pub const LOCAL_IP_REPR: IpRepr = IpReprIpvX(IpvXRepr { 549 pub const REMOTE_IP_REPR: IpRepr = IpReprIpvX(IpvXRepr { [all …]
|
D | raw.rs | 11 use crate::wire::{IpProtocol, IpRepr, IpVersion}; 280 pub(crate) fn accepts(&self, ip_repr: &IpRepr) -> bool { in accepts() 291 pub(crate) fn process(&mut self, cx: &mut Context, ip_repr: &IpRepr, payload: &[u8]) { in process() argument 322 F: FnOnce(&mut Context, (IpRepr, &[u8])) -> Result<(), E>, in dispatch() argument 359 emit(cx, (IpRepr::Ipv4(ipv4_repr), packet.payload())) in dispatch() 384 emit(cx, (IpRepr::Ipv6(ipv6_repr), packet.payload())) in dispatch() 415 use crate::wire::IpRepr; 442 pub const HEADER_REPR: IpRepr = IpRepr::Ipv4(Ipv4Repr { 473 pub const HEADER_REPR: IpRepr = IpRepr::Ipv6(Ipv6Repr {
|
D | dns.rs | 11 use crate::wire::{self, IpAddress, IpProtocol, IpRepr, UdpRepr}; 340 pub(crate) fn accepts(&self, ip_repr: &IpRepr, udp_repr: &UdpRepr) -> bool { in accepts() argument 352 ip_repr: &IpRepr, in process() argument 505 F: FnOnce(&mut Context, (IpRepr, UdpRepr, &[u8])) -> Result<(), E>, in dispatch() argument 589 let ip_repr = IpRepr::new( in dispatch()
|
D | tcp.rs | 16 IpAddress, IpEndpoint, IpListenEndpoint, IpProtocol, IpRepr, TcpControl, TcpRepr, TcpSeqNumber, 1168 pub(crate) fn reply(ip_repr: &IpRepr, repr: &TcpRepr) -> (IpRepr, TcpRepr<'static>) { in reply() argument 1182 let ip_reply_repr = IpRepr::new( in reply() 1192 pub(crate) fn rst_reply(ip_repr: &IpRepr, repr: &TcpRepr) -> (IpRepr, TcpRepr<'static>) { in rst_reply() argument 1208 fn ack_reply(&mut self, ip_repr: &IpRepr, repr: &TcpRepr) -> (IpRepr, TcpRepr<'static>) { in ack_reply() argument 1268 ip_repr: &IpRepr, in challenge_ack_reply() argument 1270 ) -> Option<(IpRepr, TcpRepr<'static>)> { in challenge_ack_reply() argument 1281 pub(crate) fn accepts(&self, _cx: &mut Context, ip_repr: &IpRepr, repr: &TcpRepr) -> bool { in accepts() argument 1312 ip_repr: &IpRepr, in process() argument 1314 ) -> Option<(IpRepr, TcpRepr<'static>)> { in process() argument [all …]
|
/smoltcp-0.9.1/src/iface/interface/ |
D | mod.rs | 328 Raw((IpRepr, &'a [u8])), 330 Udp((IpRepr, UdpRepr, &'a [u8])), 332 Tcp((IpRepr, TcpRepr<'a>)), 338 pub(crate) fn ip_repr(&self) -> IpRepr { in ip_repr() argument 341 IpPacket::Icmpv4((ipv4_repr, _)) => IpRepr::Ipv4(*ipv4_repr), in ip_repr() 343 IpPacket::Igmp((ipv4_repr, _)) => IpRepr::Ipv4(*ipv4_repr), in ip_repr() 345 IpPacket::Icmpv6((ipv6_repr, _)) => IpRepr::Ipv6(*ipv6_repr), in ip_repr() 353 IpPacket::Dhcpv4((ipv4_repr, _, _)) => IpRepr::Ipv4(*ipv4_repr), in ip_repr() 359 _ip_repr: &IpRepr, in emit_payload() argument 935 (IpRepr::Ipv4(ipv4_repr), IcmpRepr::Ipv4(icmpv4_repr)) => { in socket_egress() [all …]
|
D | ipv4.rs | 68 let ip_repr = IpRepr::Ipv4(ipv4_repr); in process_ipv4() 238 ip_repr: IpRepr, in process_icmpv4() argument 272 IpRepr::Ipv4(ipv4_repr) => self.icmpv4_reply(ipv4_repr, icmp_reply_repr), in process_icmpv4() 352 let emit_ethernet = |repr: &IpRepr, tx_buffer: &mut [u8]| { in dispatch_ipv4_frag() 370 emit_ethernet(&IpRepr::Ipv4(frag.ipv4.repr), tx_buffer); in dispatch_ipv4_frag()
|
D | ipv6.rs | 108 ip_repr: IpRepr, in process_icmpv6() argument 140 IpRepr::Ipv6(ipv6_repr) => { in process_icmpv6() 158 IpRepr::Ipv6(ipv6_repr) => self.process_ndisc(ipv6_repr, repr), in process_icmpv6()
|
D | tests.rs | 154 let repr = IpRepr::Ipv4(Ipv4Repr { in test_no_icmp_no_unicast_ipv4() 188 let repr = IpRepr::Ipv6(Ipv6Repr { in test_no_icmp_no_unicast_ipv6() 213 let repr = IpRepr::Ipv4(Ipv4Repr { in test_icmp_error_no_payload() 333 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_icmp_error_port_unreachable() 386 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_icmp_error_port_unreachable() 450 let ip_repr = IpRepr::Ipv6(Ipv6Repr { in test_handle_udp_broadcast() 458 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_handle_udp_broadcast() 766 let ip_repr = IpRepr::Ipv6(Ipv6Repr { in test_handle_valid_ndisc_request() 978 let ip_repr = IpRepr::Ipv4(ipv4_repr); in test_icmpv4_socket() 1059 let ip_repr = IpRepr::Ipv6(ipv6_repr); in test_icmpv6_nxthdr_unknown() [all …]
|
/smoltcp-0.9.1/src/wire/ |
D | mod.rs | 166 ListenEndpoint as IpListenEndpoint, Protocol as IpProtocol, Repr as IpRepr,
|
/smoltcp-0.9.1/ |
D | CHANGELOG.md | 58 - wire/ip: Remove `IpRepr::Unspecified`, `IpVersion::Unspecified`, `IpAddress::Unspecified` (#579, …
|