mirror of
https://github.com/ziglang/zig.git
synced 2025-12-23 14:43:17 +00:00
Inline the variant union
This commit is contained in:
parent
6f24c4485c
commit
c3214bcd96
@ -6942,10 +6942,6 @@ pub const tpacket_hdr_variant1 = extern struct {
|
|||||||
padding: u16,
|
padding: u16,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const tpacket3_hdr_variants = extern union {
|
|
||||||
hv1: tpacket_hdr_variant1,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const tpacket3_hdr = extern struct {
|
pub const tpacket3_hdr = extern struct {
|
||||||
next_offset: u32,
|
next_offset: u32,
|
||||||
sec: u32,
|
sec: u32,
|
||||||
@ -6955,7 +6951,9 @@ pub const tpacket3_hdr = extern struct {
|
|||||||
status: u32,
|
status: u32,
|
||||||
mac: u16,
|
mac: u16,
|
||||||
net: u16,
|
net: u16,
|
||||||
variant: tpacket3_hdr_variants,
|
variant: extern union {
|
||||||
|
hv1: tpacket_hdr_variant1,
|
||||||
|
},
|
||||||
padding: [8]u8,
|
padding: [8]u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user