libbpf-rs 0.26.2

libbpf-rs is a safe, idiomatic, and opinionated wrapper around libbpf-sys
Documentation
1
2
3
4
5
6
7
8
9
10
11
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>

// #include <linux/pkt_cls.h>
#define TC_ACT_UNSPEC (-1)

SEC("tc")
int handle_tc(struct __sk_buff *skb)
{
    return TC_ACT_UNSPEC;
}