Skip to content

Commit 7b4c545

Browse files
uefi-raw: Add PxeBaseCodeUdpPort and PxeBaseCodeMtftpInfo
1 parent fb2a304 commit 7b4c545

File tree

1 file changed

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

1 file changed

+12
-0
lines changed

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

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

7+
pub type PxeBaseCodeUdpPort = u16;
8+
9+
#[derive(Clone, Copy, Debug)]
10+
#[repr(C)]
11+
pub struct PxeBaseCodeMtftpInfo {
12+
pub m_cast_ip: IpAddress,
13+
pub c_port: PxeBaseCodeUdpPort,
14+
pub s_port: PxeBaseCodeUdpPort,
15+
pub listen_timeout: u16,
16+
pub transmit_timeout: u16,
17+
}
18+
719
bitflags! {
820
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
921
#[repr(transparent)]

0 commit comments

Comments
 (0)