Skip to content

Commit fb2a304

Browse files
uefi-raw: Add PxeBaseCodeUdpOpFlags
1 parent 6f5d6c1 commit fb2a304

File tree

1 file changed

+13
-0
lines changed
  • uefi-raw/src/protocol/network

1 file changed

+13
-0
lines changed

uefi-raw/src/protocol/network/pxe.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ use crate::{Boolean, Char8, IpAddress, MacAddress};
44
use bitflags::bitflags;
55
use core::fmt::{self, Debug, Formatter};
66

7+
bitflags! {
8+
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
9+
#[repr(transparent)]
10+
pub struct PxeBaseCodeUdpOpFlags: u16 {
11+
const ANY_SRC_IP = 0x0001;
12+
const ANY_SRC_PORT = 0x0002;
13+
const ANY_DEST_IP = 0x0004;
14+
const ANY_DEST_PORT = 0x0008;
15+
const USE_FILTER = 0x0010;
16+
const MAY_FRAGMENT = 0x0020;
17+
}
18+
}
19+
720
#[derive(Clone, Debug)]
821
#[repr(C)]
922
pub struct PxeBaseCodeMode {

0 commit comments

Comments
 (0)