Skip to content

Commit 86cc82a

Browse files
uefi: Replace IpFilters with PxeBaseCodeIpFilterFlags from uefi-raw
1 parent 9d62973 commit 86cc82a

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

uefi/src/proto/network/pxe.rs

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ use crate::{CStr8, Char8, Result, Status, StatusExt};
1818

1919
use super::{IpAddress, MacAddress};
2020

21-
pub use uefi_raw::protocol::network::pxe::PxeBaseCodeUdpOpFlags as UdpOpFlags;
21+
pub use uefi_raw::protocol::network::pxe::{
22+
PxeBaseCodeIpFilterFlags as IpFilters, PxeBaseCodeUdpOpFlags as UdpOpFlags,
23+
};
2224

2325
/// PXE Base Code protocol
2426
#[derive(Debug)]
@@ -874,22 +876,6 @@ impl IpFilter {
874876
}
875877
}
876878

877-
bitflags! {
878-
/// IP receive filters.
879-
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
880-
#[repr(transparent)]
881-
pub struct IpFilters: u8 {
882-
/// Enable the Station IP address.
883-
const STATION_IP = 0x01;
884-
/// Enable IPv4 broadcast addresses.
885-
const BROADCAST = 0x02;
886-
/// Enable all addresses.
887-
const PROMISCUOUS = 0x04;
888-
/// Enable all multicast addresses.
889-
const PROMISCUOUS_MULTICAST = 0x08;
890-
}
891-
}
892-
893879
/// A network packet.
894880
///
895881
/// Corresponds to the `EFI_PXE_BASE_CODE_PACKET` type in the C API.

0 commit comments

Comments
 (0)