Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions aya/src/programs/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,17 @@ bitflags::bitflags! {
///
/// ```no_run
/// # let mut bpf = aya::Ebpf::load(&[])?;
/// use aya::programs::{tc, SchedClassifier, TcAttachType, tc::TcAttachOptions, LinkOrder};
/// use aya::programs::{LinkOrder, SchedClassifier, SchedClassifierAttachment, TcxAttachType};
///
/// let prog: &mut SchedClassifier = bpf.program_mut("redirect_ingress").unwrap().try_into()?;
/// prog.load()?;
/// let options = TcAttachOptions::TcxOrder(LinkOrder::first());
/// prog.attach_with_options("eth0", TcAttachType::Ingress, options)?;
/// prog.attach(
/// "eth0",
/// SchedClassifierAttachment::Tcx {
/// attach_type: TcxAttachType::Ingress,
/// link_order: LinkOrder::first(),
/// },
/// )?;
///
/// # Ok::<(), aya::EbpfError>(())
/// ```
Expand Down
5 changes: 4 additions & 1 deletion aya/src/programs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ pub use crate::programs::{
sk_skb::{SkSkb, SkSkbKind},
sock_ops::SockOps,
socket_filter::{SocketFilter, SocketFilterError},
tc::{SchedClassifier, TcAttachType, TcError, TcHandle},
tc::{
NetkitAttachType, SchedClassifier, SchedClassifierAttachment, TcAttachType, TcError,
TcHandle, TcxAttachType,
},
tp_btf::BtfTracePoint,
trace_point::{TracePoint, TracePointError},
uprobe::{UProbe, UProbeError},
Expand Down
Loading