ebpf_api/lib.rs
1// Copyright 2024 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
5#[cfg(target_os = "fuchsia")]
6mod helpers;
7#[cfg(target_os = "fuchsia")]
8mod maps;
9mod program_type;
10
11#[cfg(target_os = "fuchsia")]
12pub use helpers::*;
13#[cfg(target_os = "fuchsia")]
14pub use maps::*;
15pub use program_type::*;
16
17pub use linux_uapi::{__sk_buff, bpf_sock, uaddr, uid_t};
18pub const BPF_MAP_TYPE_HASH: u32 = linux_uapi::bpf_map_type_BPF_MAP_TYPE_HASH;