-
Notifications
You must be signed in to change notification settings - Fork 332
rustnet: add package #1962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jonirrings
wants to merge
1
commit into
immortalwrt:master
Choose a base branch
from
jonirrings:master-rustnet
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
rustnet: add package #1962
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| include $(TOPDIR)/rules.mk | ||
|
|
||
| PKG_NAME:=rustnet | ||
| PKG_VERSION:=1.5.0 | ||
| PKG_RELEASE:=1 | ||
|
|
||
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
| PKG_SOURCE_URL:=https://codeload.github.com/domcyrus/rustnet/tar.gz/v$(PKG_VERSION)? | ||
| PKG_HASH:=f6425992dc5a8a700323c1231d1833a135cd93424d86cfaa788eed6cb700fe33 | ||
|
|
||
| PKG_MAINTAINER:=Jonir Rings <i@jonirrings.com> | ||
| PKG_LICENSE:=Apache-2.0 | ||
| PKG_LICENSE_FILES:=LICENSE | ||
|
|
||
| PKG_BUILD_DEPENDS:=rust/host bpf-headers bpftool/host | ||
| PKG_BUILD_PARALLEL:=1 | ||
|
|
||
| include $(INCLUDE_DIR)/package.mk | ||
| include $(INCLUDE_DIR)/bpf.mk | ||
| include ../../lang/rust/rust-package.mk | ||
|
|
||
| define Package/rustnet | ||
| SECTION:=net | ||
| CATEGORY:=Network | ||
| 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 | ||
| endef | ||
|
|
||
| define Package/rustnet/description | ||
| A terminal-based, per-process network monitoring tool with deep | ||
| packet inspection. Maps TCP, UDP, and QUIC connections to owning | ||
| processes using eBPF (Linux), PKTAP (macOS), or native APIs, | ||
| with DPI for HTTP, TLS/SNI, DNS, SSH, QUIC, and many other protocols. | ||
| Supports exporting annotated PCAPNG files with process metadata | ||
| and GeoIP enrichment. | ||
| endef | ||
|
|
||
| define Package/rustnet/install | ||
| $(INSTALL_DIR) $(1)/usr/bin | ||
| $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/rustnet $(1)/usr/bin | ||
| endef | ||
|
|
||
| $(eval $(call RustBinPackage,rustnet)) | ||
| $(eval $(call BuildPackage,rustnet)) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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
riscv64dev board, VisionFive2 with ubuntu 26.04, it works, but not well, ebpf CO-RE load failed.from the rustnet release, only
armhf/aarch64/amd64linux are supported,so, I'd like to limit arch to arch64/arm/x86_64 for the time being,
what is your suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds make sense