From 86cc82a6339d49e099b29ab54979e3885ee4b054 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Mon, 17 Feb 2025 02:40:50 -0500 Subject: [PATCH] uefi: Replace IpFilters with PxeBaseCodeIpFilterFlags from uefi-raw --- uefi/src/proto/network/pxe.rs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/uefi/src/proto/network/pxe.rs b/uefi/src/proto/network/pxe.rs index 89f773ba7..2cbf2a965 100644 --- a/uefi/src/proto/network/pxe.rs +++ b/uefi/src/proto/network/pxe.rs @@ -18,7 +18,9 @@ use crate::{CStr8, Char8, Result, Status, StatusExt}; use super::{IpAddress, MacAddress}; -pub use uefi_raw::protocol::network::pxe::PxeBaseCodeUdpOpFlags as UdpOpFlags; +pub use uefi_raw::protocol::network::pxe::{ + PxeBaseCodeIpFilterFlags as IpFilters, PxeBaseCodeUdpOpFlags as UdpOpFlags, +}; /// PXE Base Code protocol #[derive(Debug)] @@ -874,22 +876,6 @@ impl IpFilter { } } -bitflags! { - /// IP receive filters. - #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)] - #[repr(transparent)] - pub struct IpFilters: u8 { - /// Enable the Station IP address. - const STATION_IP = 0x01; - /// Enable IPv4 broadcast addresses. - const BROADCAST = 0x02; - /// Enable all addresses. - const PROMISCUOUS = 0x04; - /// Enable all multicast addresses. - const PROMISCUOUS_MULTICAST = 0x08; - } -} - /// A network packet. /// /// Corresponds to the `EFI_PXE_BASE_CODE_PACKET` type in the C API.