Home
last modified time | relevance | path

Searched refs:udp_repr (Results 1 – 9 of 9) sorted by relevance

/smoltcp-0.9.1/src/iface/interface/
Dsixlowpan.rs184 let udp_repr = SixlowpanUdpNhcRepr::parse( in decompress_sixlowpan() localVariable
192 decompressed_size -= udp_repr.header_len(); in decompress_sixlowpan()
233 let udp_repr = SixlowpanUdpNhcRepr::parse( in decompress_sixlowpan() localVariable
241 &mut buffer[..udp_repr.0.header_len() + iphc.payload().len() in decompress_sixlowpan()
242 - udp_repr.header_len()], in decompress_sixlowpan()
244 udp_repr.0.emit_header(&mut udp, ipv6_repr.payload_len - 8); in decompress_sixlowpan()
246 buffer[8..].copy_from_slice(&iphc.payload()[udp_repr.header_len()..]); in decompress_sixlowpan()
333 let udp_repr = SixlowpanUdpNhcRepr(udpv6_repr); in dispatch_ieee802154() localVariable
334 _compressed_headers_len += udp_repr.header_len(); in dispatch_ieee802154()
336 total_size += udp_repr.header_len() + payload.len(); in dispatch_ieee802154()
[all …]
Dtests.rs328 let udp_repr = UdpRepr { in test_icmp_error_port_unreachable() localVariable
337 payload_len: udp_repr.header_len() + UDP_PAYLOAD.len(), in test_icmp_error_port_unreachable()
342 udp_repr.emit( in test_icmp_error_port_unreachable()
361 payload_len: udp_repr.header_len() + UDP_PAYLOAD.len(), in test_icmp_error_port_unreachable()
382 .process_udp(&mut sockets, ip_repr, udp_repr, false, &UDP_PAYLOAD, data), in test_icmp_error_port_unreachable()
390 payload_len: udp_repr.header_len() + UDP_PAYLOAD.len(), in test_icmp_error_port_unreachable()
395 udp_repr.emit( in test_icmp_error_port_unreachable()
411 udp_repr, in test_icmp_error_port_unreachable()
444 let udp_repr = UdpRepr { in test_handle_udp_broadcast() localVariable
454 payload_len: udp_repr.header_len() + UDP_PAYLOAD.len(), in test_handle_udp_broadcast()
[all …]
Dipv4.rs89 let udp_repr = check!(UdpRepr::parse( in process_ipv4() localVariable
97 dhcp_socket.process(self, &ipv4_repr, &udp_repr, udp_payload); in process_ipv4()
130 let udp_repr = check!(UdpRepr::parse( in process_ipv4() localVariable
140 udp_repr, in process_ipv4()
Dmod.rs382 IpPacket::Udp((_, udp_repr, inner_payload)) => udp_repr.emit( in emit_payload()
418 IpPacket::Dhcpv4((_, udp_repr, dhcp_repr)) => udp_repr.emit( in emit_payload()
1360 udp_repr: UdpRepr, in process_udp()
1370 if udp_socket.accepts(self, &ip_repr, &udp_repr) { in process_udp()
1371 udp_socket.process(self, &ip_repr, &udp_repr, udp_payload); in process_udp()
1381 if dns_socket.accepts(&ip_repr, &udp_repr) { in process_udp()
1382 dns_socket.process(self, &ip_repr, &udp_repr, udp_payload); in process_udp()
Dipv6.rs61 let udp_repr = check!(UdpRepr::parse( in process_nxt_hdr() localVariable
71 udp_repr, in process_nxt_hdr()
/smoltcp-0.9.1/src/socket/
Ddns.rs340 pub(crate) fn accepts(&self, ip_repr: &IpRepr, udp_repr: &UdpRepr) -> bool { in accepts()
341 (udp_repr.src_port == DNS_PORT in accepts()
346 || (udp_repr.src_port == MDNS_DNS_PORT) in accepts()
353 udp_repr: &UdpRepr, in process()
356 debug_assert!(self.accepts(ip_repr, udp_repr)); in process()
364 udp_repr.dst_port in process()
392 if udp_repr.dst_port != pq.port || p.transaction_id() != pq.txid { in process()
582 let udp_repr = UdpRepr { in dispatch() localVariable
593 udp_repr.header_len() + payload.len(), in dispatch()
601 udp_repr.src_port in dispatch()
[all …]
Ddhcpv4.rs545 let udp_repr = UdpRepr { in dispatch() localVariable
570 ipv4_repr.payload_len = udp_repr.header_len() + dhcp_repr.buffer_len(); in dispatch()
571 emit(cx, (ipv4_repr, udp_repr, dhcp_repr))?; in dispatch()
598 ipv4_repr.payload_len = udp_repr.header_len() + dhcp_repr.buffer_len(); in dispatch()
599 emit(cx, (ipv4_repr, udp_repr, dhcp_repr))?; in dispatch()
627 ipv4_repr.payload_len = udp_repr.header_len() + dhcp_repr.buffer_len(); in dispatch()
628 emit(cx, (ipv4_repr, udp_repr, dhcp_repr))?; in dispatch()
744 (ip_repr, udp_repr, dhcp_repr): (Ipv4Repr, UdpRepr, DhcpRepr), in send() argument
749 net_trace!(" {:?}", udp_repr); in send()
757 s.socket.process(&mut s.cx, &ip_repr, &udp_repr, &payload) in send()
[all …]
Dudp.rs650 socket.dispatch(&mut cx, |_, (ip_repr, udp_repr, payload)| { in test_send_dispatch()
652 assert_eq!(udp_repr, LOCAL_UDP_REPR); in test_send_dispatch()
661 socket.dispatch(&mut cx, |_, (ip_repr, udp_repr, payload)| { in test_send_dispatch()
663 assert_eq!(udp_repr, LOCAL_UDP_REPR); in test_send_dispatch()
774 let mut udp_repr = REMOTE_UDP_REPR; in test_doesnt_accept_wrong_port() localVariable
775 assert!(socket.accepts(&mut cx, &REMOTE_IP_REPR, &udp_repr)); in test_doesnt_accept_wrong_port()
776 udp_repr.dst_port += 1; in test_doesnt_accept_wrong_port()
777 assert!(!socket.accepts(&mut cx, &REMOTE_IP_REPR, &udp_repr)); in test_doesnt_accept_wrong_port()
/smoltcp-0.9.1/src/wire/
Dip.rs835 Ok(udp_repr) => { in pretty_print_ip_payload()
840 udp_repr, in pretty_print_ip_payload()