|
|
@ -14,6 +14,7 @@ use aya::programs::SockOps;
|
|
|
|
use aya::maps::{MapRefMut,SockHash};
|
|
|
|
use aya::maps::{MapRefMut,SockHash};
|
|
|
|
use aya::programs::SkMsg;
|
|
|
|
use aya::programs::SkMsg;
|
|
|
|
use {{crate_name}}_common::SockKey;
|
|
|
|
use {{crate_name}}_common::SockKey;
|
|
|
|
|
|
|
|
use std::convert::TryFrom;
|
|
|
|
{%- when "xdp" -%}
|
|
|
|
{%- when "xdp" -%}
|
|
|
|
use aya::programs::{Xdp, XdpFlags};
|
|
|
|
use aya::programs::{Xdp, XdpFlags};
|
|
|
|
{%- when "classifier" -%}
|
|
|
|
{%- when "classifier" -%}
|
|
|
@ -28,7 +29,7 @@ use aya::{programs::Lsm, Btf};
|
|
|
|
use aya::{programs::BtfTracePoint, Btf};
|
|
|
|
use aya::{programs::BtfTracePoint, Btf};
|
|
|
|
{%- endcase %}
|
|
|
|
{%- endcase %}
|
|
|
|
use std::{
|
|
|
|
use std::{
|
|
|
|
convert::{TryFrom,TryInto},
|
|
|
|
convert::TryInto,
|
|
|
|
sync::Arc,
|
|
|
|
sync::Arc,
|
|
|
|
sync::atomic::{AtomicBool, Ordering},
|
|
|
|
sync::atomic::{AtomicBool, Ordering},
|
|
|
|
thread,
|
|
|
|
thread,
|
|
|
|