|
|
@ -14,10 +14,10 @@ use aya_bpf::{
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#[map]
|
|
|
|
#[map]
|
|
|
|
static mut FOO: Array<u32> = Array::<u32>::with_max_entries(10, 0);
|
|
|
|
static FOO: Array<u32> = Array::<u32>::with_max_entries(10, 0);
|
|
|
|
|
|
|
|
|
|
|
|
#[map(name = "BAR")]
|
|
|
|
#[map(name = "BAR")]
|
|
|
|
static mut BAZ: Array<u32> = Array::<u32>::with_max_entries(10, 0);
|
|
|
|
static BAZ: Array<u32> = Array::<u32>::with_max_entries(10, 0);
|
|
|
|
|
|
|
|
|
|
|
|
#[xdp]
|
|
|
|
#[xdp]
|
|
|
|
pub fn pass(ctx: XdpContext) -> u32 {
|
|
|
|
pub fn pass(ctx: XdpContext) -> u32 {
|
|
|
@ -34,4 +34,4 @@ unsafe fn try_pass(_ctx: XdpContext) -> Result<u32, u32> {
|
|
|
|
#[panic_handler]
|
|
|
|
#[panic_handler]
|
|
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
|
|
unsafe { core::hint::unreachable_unchecked() }
|
|
|
|
unsafe { core::hint::unreachable_unchecked() }
|
|
|
|
}
|
|
|
|
}
|
|
|
|