/smoltcp-0.9.1/src/socket/ |
D | raw.rs | 280 pub(crate) fn accepts(&self, ip_repr: &IpRepr) -> bool { in accepts() method 292 debug_assert!(self.accepts(ip_repr)); in process() 549 assert!(socket.accepts(&$hdr)); 565 assert!(socket.accepts(&$hdr)); 574 assert!(socket.accepts(&$hdr)); 669 assert!(socket.accepts(&ipv4_locals::HEADER_REPR)); in test_recv_process() 677 assert!(socket.accepts(&ipv4_locals::HEADER_REPR)); in test_recv_process() 693 assert!(socket.accepts(&ipv6_locals::HEADER_REPR)); in test_recv_process() 701 assert!(socket.accepts(&ipv6_locals::HEADER_REPR)); in test_recv_process() 723 assert!(socket.accepts(&ipv4_locals::HEADER_REPR)); in test_peek_process() [all …]
|
D | udp.rs | 373 pub(crate) fn accepts(&self, _cx: &mut Context, ip_repr: &IpRepr, repr: &UdpRepr) -> bool { in accepts() method 395 debug_assert!(self.accepts(cx, ip_repr, repr)); in process() 682 assert!(socket.accepts(&mut cx, &REMOTE_IP_REPR, &REMOTE_UDP_REPR)); in test_recv_process() 686 assert!(socket.accepts(&mut cx, &REMOTE_IP_REPR, &REMOTE_UDP_REPR)); in test_recv_process() 715 assert!(socket.accepts(&mut cx, &REMOTE_IP_REPR, &REMOTE_UDP_REPR)); in test_recv_truncated_slice() 775 assert!(socket.accepts(&mut cx, &REMOTE_IP_REPR, &udp_repr)); in test_doesnt_accept_wrong_port() 777 assert!(!socket.accepts(&mut cx, &REMOTE_IP_REPR, &udp_repr)); in test_doesnt_accept_wrong_port() 786 assert!(port_bound_socket.accepts(&mut cx, &BAD_IP_REPR, &REMOTE_UDP_REPR)); in test_doesnt_accept_wrong_ip() 790 assert!(!ip_bound_socket.accepts(&mut cx, &BAD_IP_REPR, &REMOTE_UDP_REPR)); in test_doesnt_accept_wrong_ip()
|
D | icmp.rs | 372 pub(crate) fn accepts(&self, cx: &mut Context, ip_repr: &IpRepr, icmp_repr: &IcmpRepr) -> bool { in accepts() method 762 assert!(socket.accepts(&mut cx, &REMOTE_IPV4_REPR, &ECHOV4_REPR.into())); in test_recv_process() 766 assert!(socket.accepts(&mut cx, &REMOTE_IPV4_REPR, &ECHOV4_REPR.into())); in test_recv_process() 791 assert!(!socket.accepts(&mut cx, &REMOTE_IPV4_REPR, &icmp_repr.into())); in test_accept_bad_id() 838 assert!(socket.accepts(&mut cx, &ip_repr, &icmp_repr.into())); in test_accepts_udp() 1019 assert!(socket.accepts(&mut cx, &REMOTE_IPV6_REPR, &ECHOV6_REPR.into())); in test_recv_process() 1023 assert!(socket.accepts(&mut cx, &REMOTE_IPV6_REPR, &ECHOV6_REPR.into())); in test_recv_process() 1053 assert!(!socket.accepts(&mut cx, &REMOTE_IPV6_REPR, &icmp_repr.into())); in test_accept_bad_id() 1100 assert!(socket.accepts(&mut cx, &ip_repr, &icmp_repr.into())); in test_accepts_udp()
|
D | dns.rs | 340 pub(crate) fn accepts(&self, ip_repr: &IpRepr, udp_repr: &UdpRepr) -> bool { in accepts() method 356 debug_assert!(self.accepts(ip_repr, udp_repr)); in process()
|
D | tcp.rs | 1281 pub(crate) fn accepts(&self, _cx: &mut Context, ip_repr: &IpRepr, repr: &TcpRepr) -> bool { in accepts() method 1315 debug_assert!(self.accepts(cx, ip_repr, repr)); in process() 2434 assert!(socket.socket.accepts(&mut socket.cx, &ip_repr, repr)); in send() 2672 assert!(!s.socket.accepts(&mut s.cx, &SEND_IP_TEMPL, &tcp_repr)); in test_closed_reject() 2685 assert!(!s.socket.accepts(&mut s.cx, &SEND_IP_TEMPL, &tcp_repr)); in test_closed_reject_after_listen() 2846 assert!(!s.socket.accepts(&mut s.cx, &SEND_IP_TEMPL, &tcp_repr)); in test_listen_syn_reject_ack() 6907 assert!(!s.socket.accepts(&mut s.cx, &SEND_IP_TEMPL, &tcp_repr)); in test_doesnt_accept_wrong_port() 6915 assert!(!s.socket.accepts(&mut s.cx, &SEND_IP_TEMPL, &tcp_repr)); in test_doesnt_accept_wrong_port() 6936 assert!(s.socket.accepts(&mut s.cx, &ip_repr, &tcp_repr)); in test_doesnt_accept_wrong_ip() 6945 assert!(!s.socket.accepts(&mut s.cx, &ip_repr_wrong_src, &tcp_repr)); in test_doesnt_accept_wrong_ip() [all …]
|
/smoltcp-0.9.1/src/iface/interface/ |
D | ipv6.rs | 127 if icmp_socket.accepts(self, &ip_repr, &icmp_repr.into()) { in process_icmpv6()
|
D | mod.rs | 1321 if raw_socket.accepts(ip_repr) { in raw_socket_filter() 1370 if udp_socket.accepts(self, &ip_repr, &udp_repr) { in process_udp() 1381 if dns_socket.accepts(&ip_repr, &udp_repr) { in process_udp() 1438 if tcp_socket.accepts(self, &ip_repr, &tcp_repr) { in process_tcp()
|
D | ipv4.rs | 252 if icmp_socket.accepts(self, &ip_repr, &icmp_repr.into()) { in process_icmpv4()
|