Nothing to see here, move along meow
0

Configure Feed

Select the types of activity you want to include in your feed.

at main 593 B View raw
1#[allow(dead_code)] 2#[repr(C)] 3#[derive(Clone, Copy)] 4pub struct VirtioNetHdr { 5 pub flags: u8, 6 pub gso_type: u8, 7 pub hdr_len: u16, 8 pub gso_size: u16, 9 pub csum_start: u16, 10 pub csum_offset: u16, 11 pub num_buffers: u16, 12} 13 14#[allow(dead_code)] 15impl VirtioNetHdr { 16 pub const SIZE: usize = core::mem::size_of::<Self>(); 17 18 pub const fn zeroed() -> Self { 19 Self { 20 flags: 0, 21 gso_type: 0, 22 hdr_len: 0, 23 gso_size: 0, 24 csum_start: 0, 25 csum_offset: 0, 26 num_buffers: 0, 27 } 28 } 29}