Searched refs:HardwareAddress (Results 1 – 7 of 7) sorted by relevance
/smoltcp-0.9.1/src/wire/ |
D | mod.rs | 278 pub enum HardwareAddress { enum 286 impl HardwareAddress { impl 290 HardwareAddress::Ethernet(addr) => addr.as_bytes(), in as_bytes() 292 HardwareAddress::Ieee802154(addr) => addr.as_bytes(), in as_bytes() 300 HardwareAddress::Ethernet(addr) => addr.is_unicast(), in is_unicast() 302 HardwareAddress::Ieee802154(addr) => addr.is_unicast(), in is_unicast() 310 HardwareAddress::Ethernet(addr) => addr.is_broadcast(), in is_broadcast() 312 HardwareAddress::Ieee802154(addr) => addr.is_broadcast(), in is_broadcast() 319 HardwareAddress::Ethernet(addr) => *addr, in ethernet_or_panic() 328 HardwareAddress::Ieee802154(addr) => *addr, in ieee802154_or_panic() [all …]
|
/smoltcp-0.9.1/src/iface/ |
D | neighbor.rs | 8 use crate::wire::{HardwareAddress, IpAddress}; 17 hardware_addr: HardwareAddress, 26 Found(HardwareAddress), 69 hardware_addr: HardwareAddress, in fill() argument 157 const HADDR_A: HardwareAddress = HardwareAddress::Ethernet(EthernetAddress([0, 0, 0, 0, 0, 1])); 158 const HADDR_B: HardwareAddress = HardwareAddress::Ethernet(EthernetAddress([0, 0, 0, 0, 0, 2])); 159 const HADDR_C: HardwareAddress = HardwareAddress::Ethernet(EthernetAddress([0, 0, 0, 0, 0, 3])); 160 const HADDR_D: HardwareAddress = HardwareAddress::Ethernet(EthernetAddress([0, 0, 0, 0, 0, 4]));
|
/smoltcp-0.9.1/src/iface/interface/ |
D | mod.rs | 243 hardware_addr: Option<HardwareAddress>, 282 pub hardware_addr: Option<HardwareAddress>, 588 pub fn hardware_addr(&self) -> HardwareAddress { in hardware_addr() argument 609 pub fn set_hardware_addr(&mut self, addr: HardwareAddress) { in set_hardware_addr() argument 1051 pub(crate) fn hardware_addr(&self) -> Option<HardwareAddress> { in hardware_addr() argument 1171 hardware_addr: Some(crate::wire::HardwareAddress::Ethernet( in mock() 1175 hardware_addr: Some(crate::wire::HardwareAddress::Ieee802154( in mock() 1198 fn check_hardware_addr(addr: &HardwareAddress) { in check_hardware_addr() argument 1531 ) -> Result<(HardwareAddress, Tx), DispatchError> in lookup_hardware_addr() argument 1538 Medium::Ethernet => HardwareAddress::Ethernet(EthernetAddress::BROADCAST), in lookup_hardware_addr() [all …]
|
D | ethernet.rs | 25 && HardwareAddress::Ethernet(eth_frame.dst_addr()) != self.hardware_addr.unwrap() in process_ethernet()
|
D | tests.rs | 746 Ok((HardwareAddress::Ethernet(remote_hw_addr), MockTxToken)) in test_handle_valid_arp_request() 819 Ok((HardwareAddress::Ethernet(remote_hw_addr), MockTxToken)) in test_handle_valid_ndisc_request() 923 Ok((HardwareAddress::Ethernet(remote_hw_addr), MockTxToken)) in test_arp_flush_after_update_ip() 1382 HardwareAddress::Ieee802154(Ieee802154Address::default()), in test_echo_request_sixlowpan_128_bytes() 1510 HardwareAddress::Ieee802154(Ieee802154Address::default()), in test_echo_request_sixlowpan_128_bytes()
|
D | ipv4.rs | 217 Some(HardwareAddress::Ethernet(addr)) => addr, in process_arp()
|
/smoltcp-0.9.1/src/socket/ |
D | dhcpv4.rs | 11 use crate::wire::{DhcpOption, HardwareAddress}; 303 let Some(HardwareAddress::Ethernet(ethernet_addr)) = cx.hardware_addr() else { in process() 506 let Some(HardwareAddress::Ethernet(ethernet_addr)) = cx.hardware_addr() else { in dispatch()
|