We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417ec7c commit bc91632Copy full SHA for bc91632
uefi-raw/src/lib.rs
@@ -194,6 +194,20 @@ impl From<IpAddr> for IpAddress {
194
}
195
196
197
+impl From<[u8; 16]> for IpAddress {
198
+ fn from(value: [u8; 16]) -> Self {
199
+ Self {
200
+ v6: Ipv6Addr::from(value),
201
+ }
202
203
+}
204
+
205
+impl From<IpAddress> for [u8; 16] {
206
+ fn from(value: IpAddress) -> Self {
207
+ value.octets()
208
209
210
211
/// UEFI Media Access Control (MAC) address.
212
///
213
/// UEFI supports multiple network protocols and hardware types, not just
0 commit comments