netdevice_client/session/buffer/
sys.rs

1/* automatically generated by rust-bindgen 0.59.1 */
2
3// Copyright 2020 The Fuchsia Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style license that can be
5// found in the LICENSE file.
6
7// Generated by src/connectivity/lib/network-device/rust/scripts/bindgen.sh
8// Run the above script whenever src/connectivity/lib/network-device/buffer_descriptor/buffer_descriptor.h
9// has changed.
10
11pub const __NETWORK_DEVICE_DESCRIPTOR_VERSION: u32 = 1;
12#[repr(C)]
13#[derive(Debug, Copy, Clone)]
14pub struct buffer_descriptor {
15    pub frame_type: u8,
16    pub chain_length: u8,
17    pub nxt: u16,
18    pub info_type: u32,
19    pub port_id: buffer_descriptor_port_id,
20    pub _reserved: [u8; 2usize],
21    pub client_opaque_data: [u8; 4usize],
22    pub offset: u64,
23    pub head_length: u16,
24    pub tail_length: u16,
25    pub data_length: u32,
26    pub inbound_flags: u32,
27    pub return_flags: u32,
28}
29#[repr(C)]
30#[derive(Debug, Copy, Clone)]
31pub struct buffer_descriptor_port_id {
32    pub base: u8,
33    pub salt: u8,
34}