Skip to content

Commit 5922d3d

Browse files
committed
uefi-raw
1 parent a628310 commit 5922d3d

File tree

1 file changed

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

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ pub struct HttpV4AccessPoint {
3333
pub local_port: u16,
3434
}
3535

36+
impl Default for HttpV4AccessPoint {
37+
fn default() -> Self {
38+
Self {
39+
use_default_addr: Default::default(),
40+
local_address: Ipv4Addr::from_bits(0),
41+
local_subnet: Ipv4Addr::from_bits(0),
42+
local_port: 0,
43+
}
44+
}
45+
}
46+
3647
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
3748
#[repr(C)]
3849
pub struct HttpV6AccessPoint {

0 commit comments

Comments
 (0)