fix: use the correct return value for cgroup_skb

pull/156/head
脑袋里进花生了 2 weeks ago committed by Redmomn
parent 0fc3f2934e
commit 962848a3f8
No known key found for this signature in database
GPG Key ID: 04675C8EFDFDA04C

@ -183,7 +183,7 @@ pub fn {{crate_name}}(ctx: SkBuffContext) -> i32 {
fn try_{{crate_name}}(ctx: SkBuffContext) -> Result<i32, i32> {
info!(&ctx, "received a packet");
Ok(0)
Ok(1)
}
{%- when "tracepoint" %}
use aya_ebpf::{macros::tracepoint, programs::TracePointContext};

Loading…
Cancel
Save