mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
288 B
Rust
16 lines
288 B
Rust
10 months ago
|
#![no_std]
|
||
|
#![no_main]
|
||
|
|
||
|
use aya_ebpf::{bindings::tcx_action_base::TCX_NEXT, macros::classifier, programs::TcContext};
|
||
|
|
||
|
#[classifier]
|
||
|
pub fn tcx_next(_ctx: TcContext) -> i32 {
|
||
|
TCX_NEXT
|
||
|
}
|
||
|
|
||
|
#[cfg(not(test))]
|
||
|
#[panic_handler]
|
||
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
||
|
loop {}
|
||
|
}
|