mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Inline the variant union
This commit is contained in:
parent
6f24c4485c
commit
c3214bcd96
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Add table
Reference in a new issue