mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-19 20:46:35 +00:00
Bump smoltcp version
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
25a918d132
commit
9707b46c7f
@ -8,7 +8,7 @@ use smoltcp::{
|
||||
phy::{DeviceCapabilities, TxToken},
|
||||
wire::{
|
||||
self, ArpOperation, ArpPacket, ArpRepr, EthernetAddress, EthernetFrame, EthernetProtocol,
|
||||
EthernetRepr, IpAddress, Ipv4Address, Ipv4Cidr, Ipv4Packet,
|
||||
EthernetRepr, IpAddress, Ipv4Address, Ipv4AddressExt, Ipv4Cidr, Ipv4Packet,
|
||||
},
|
||||
};
|
||||
|
||||
@ -157,7 +157,7 @@ impl<D, E> EtherIface<D, E> {
|
||||
..
|
||||
} => {
|
||||
// Ignore the ARP packet if the source addresses are not unicast.
|
||||
if !source_hardware_addr.is_unicast() || !source_protocol_addr.is_unicast() {
|
||||
if !source_hardware_addr.is_unicast() || !source_protocol_addr.x_is_unicast() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user