wlan_common/ie/wsc/
mod.rs

1// Copyright 2020 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5mod constants;
6mod fields;
7mod id;
8mod parse;
9mod reader;
10
11pub use constants::*;
12pub use fields::*;
13pub use id::*;
14pub use parse::*;
15pub use reader::*;
16
17use crate::big_endian::BigEndianU16;
18use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Unaligned};
19
20#[repr(C, packed)]
21#[derive(IntoBytes, KnownLayout, FromBytes, Immutable, Unaligned)]
22pub struct AttributeHeader {
23    id: Id,
24    body_len: BigEndianU16,
25}