Skip to content

rustnet: add package - #1962

Open
jonirrings wants to merge 1 commit into
immortalwrt:masterfrom
jonirrings:master-rustnet
Open

rustnet: add package#1962
jonirrings wants to merge 1 commit into
immortalwrt:masterfrom
jonirrings:master-rustnet

Conversation

@jonirrings

@jonirrings jonirrings commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Add Makefile for rustnet package with build instructions.

📦 Package Details

Description: a network moniter utility which enhanced by ebpf


🧪 Run Testing Details

  • ImmortalWrt Version: 25.12.0, master
  • ImmortalWrt Target/Subtarget: any target with ebpf support
  • ImmortalWrt Device: any device with ebpf support

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/rustnet/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

@jonirrings

jonirrings commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Hello, i had a question
Do I not need to make PR to release branch like 25.12?
Just the master is sufficient?

@1715173329

Copy link
Copy Markdown
Member

All changes must go master branch first, then do backport.

@jonirrings

Copy link
Copy Markdown
Contributor Author

got it, thanks.

@jonirrings
jonirrings force-pushed the master-rustnet branch 2 times, most recently from 3c6435d to e1c37e3 Compare July 25, 2026 13:13
Add Makefile for rustnet package with build instructions.

Signed-off-by: Jonir Rings <i@jonirrings.com>
@jonirrings

Copy link
Copy Markdown
Contributor Author

hello, can you approve for github action running?

Comment thread net/rustnet/Makefile
TITLE:=Per-process network monitor with DPI
URL:=https://github.com/domcyrus/rustnet
# You need enable KERNEL_DEBUG_INFO_BTF and KERNEL_BPF_EVENTS
DEPENDS:=@(aarch64||x86_64||riscv64) $(BPF_DEPENDS) +libpcap +libcap +libelf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this arch list built? based on history tests this program builds on arm as well.
any tests on loongarch64/mips64?

I'd prefer using $(RUST_ARCH_DEPENDS) with @!(i386||mips||mipsel||powerpc)

@jonirrings jonirrings Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm working on openwrt PR at the same time. from feedback on that side, this package is better to be limited to aarch64/x86_64.
I've tested on my riscv64 dev board, VisionFive2 with ubuntu 26.04, it works, but not well, ebpf CO-RE load failed.

from the rustnet release, only armhf/aarch64/amd64 linux are supported,

so, I'd like to limit arch to arch64/arm/x86_64 for the time being,
what is your suggestion?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, I'd like to limit arch to arch64/arm/x86_64 for the time being

Sounds make sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants