socket_filter 0.2.4

A simple bpf program to monitor host's net traffic
Documentation
[package]
name = "socket_filter"
version = { workspace = true }
authors = ["arloor <admin@arloor.com>"]
edition = "2021"
license = "LGPL-2.1-only OR BSD-2-Clause"
rust-version = "1.71"
repository = "https://github.com/arloor/bpf_rs_hub"
homepage = "https://github.com/arloor/bpf_rs_hub/tree/master/socket_filter"
description = "A simple bpf program to monitor host's net traffic"
keywords = ["socket", "libbpf"]
readme = "README.md"

[lib]
path = "src/lib.rs" # 库文件的路径

[[example]]
name = "example1"
path = "examples/example1.rs"

[dependencies]
libc.workspace = true            # Raw FFI bindings to platform libraries like libc
libbpf-rs = { workspace = true } # libbpf-rs is a safe, idiomatic, and opinionated wrapper around libbpf-sys
plain.workspace = true           # A small Rust library that allows users to reinterpret data of certain types safely
pnet = "0.35"                    # Rust library for low level networking using the pcap library
log.workspace = true

[build-dependencies]
libbpf-cargo = { workspace = true } # Cargo plugin to build bpf programs

[features]
default = []
vendored = ["libbpf-rs/vendored"]
static = ["libbpf-rs/static"]