xref: /aosp_15_r20/tools/netsim/rust/packets/src/lib.rs (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1 // Copyright 2023 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 //! # netsim-packets Crate
16 //!
17 //! A collection of packet definitions for netsimd.
18 
19 pub mod ieee80211;
20 pub mod llc;
21 
22 pub mod link_layer {
23     #![allow(clippy::all)]
24     #![allow(unused)]
25     #![allow(missing_docs)]
26 
27     include!(concat!(env!("OUT_DIR"), "/link_layer_packets.rs"));
28 }
29 
30 pub mod netlink {
31     #![allow(clippy::all)]
32     #![allow(unused)]
33     #![allow(missing_docs)]
34 
35     include!(concat!(env!("OUT_DIR"), "/netlink_packets.rs"));
36 }
37 
38 pub mod mac80211_hwsim {
39     #![allow(clippy::all)]
40     #![allow(unused)]
41     #![allow(missing_docs)]
42 
43     include!(concat!(env!("OUT_DIR"), "/mac80211_hwsim_packets.rs"));
44 }
45