Skip to content

Commit

Permalink
Revert NET_LUID_LH changes to avoid breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
retep998 committed Jun 25, 2020
1 parent 1e52916 commit 01ddd7b
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/shared/ifdef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,28 @@ STRUCT!{struct NET_IF_ALIAS_LH {
ifAliasOffset: USHORT,
}}
pub type PNET_IF_ALIAS_LH = *mut NET_IF_ALIAS_LH;
STRUCT!{struct NET_LUID_LH_Info {
bitfield: ULONG64,
}}
BITFIELD!{NET_LUID_LH_Info bitfield: ULONG64 [
// FIXME: Switch to union version in 0.4
// STRUCT!{struct NET_LUID_LH_Info {
// bitfield: ULONG64,
// }}
// BITFIELD!{NET_LUID_LH_Info bitfield: ULONG64 [
// Reserved set_Reserved[0..24],
// NetLuidIndex set_NetLuidIndex[24..48],
// IfType set_IfType[48..64],
// ]}
// UNION!{struct NET_LUID_LH {
// [u64; 1],
// Value Value_mut: ULONG64,
// Info Info_mut: NET_LUID_LH_Info,
// }}
STRUCT!{struct NET_LUID_LH {
Value: ULONG64,
}}
BITFIELD!{NET_LUID_LH Value: ULONG64 [
Reserved set_Reserved[0..24],
NetLuidIndex set_NetLuidIndex[24..48],
IfType set_IfType[48..64],
]}
UNION!{union NET_LUID_LH {
[u64; 1],
Value Value_mut: ULONG64,
Info Info_mut: NET_LUID_LH_Info,
}}
pub type PNET_LUID_LH = *mut NET_LUID_LH;
pub type NET_IF_RCV_ADDRESS = NET_IF_RCV_ADDRESS_LH;
pub type PNET_IF_RCV_ADDRESS = *mut NET_IF_RCV_ADDRESS;
Expand Down

0 comments on commit 01ddd7b

Please sign in to comment.