Skip to content

Commit 1058fc2

Browse files
d-sonuganicholasbishop
authored andcommitted
fixed an error in the snp module
1 parent b0cb8d2 commit 1058fc2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

uefi/src/proto/network/snp.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,15 @@ pub struct NetworkMode {
351351
}
352352

353353
newtype_enum! {
354+
/// The state of a network interface
354355
pub enum NetworkState: u32 => {
355-
Stopped = 0,
356-
Started = 1,
357-
Initialized = 2,
358-
MaxState = 4,
356+
/// The interface has been stopped
357+
STOPPED = 0,
358+
/// The interface has been started
359+
STARTED = 1,
360+
/// The interface has been initialized
361+
INITIALIZED = 2,
362+
/// No state can have a number higher than this
363+
MAX_STATE = 4,
359364
}
360365
}

0 commit comments

Comments
 (0)