Revival: Support for Modern Linux Kernels & Netlink Integration#6
Open
mnietona wants to merge 108 commits into
Open
Revival: Support for Modern Linux Kernels & Netlink Integration#6mnietona wants to merge 108 commits into
mnietona wants to merge 108 commits into
Conversation
6266638 to
d9e9080
Compare
… for pcap path handling
- C Core: Implemented DRY principles in json_builder.c and sock_events.c, reducing boilerplate by 70% using macro-based event builders. - Shell: Hardened bin/tcpsnitch script (Shellcheck SC2155, SC2206, SC2046, SC2164 compliance) for better error handling and portability. - Static Analysis: Fixed all Cppcheck/Scan-build warnings, including variable scope reduction, const-correctness, and BPF macro guards. - Portability: Reinforced Android platform guards across init.c and lib.c. - Build System: Updated Makefile and PKGBUILD for cleaner dependency management and eBPF support. - Formatting: Standardized whole codebase with clang-format (LLVM style). - Cleanup: Removed dead code and obsolete .devcontainer configurations.
… and QLOG support
9f3d77b to
446d7bf
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Context & Motivation
This project hasn't seen updates since 2018. As a result, the codebase was no longer compilable or executable on modern Linux distributions (tested on Ubuntu 24.04, kernel 6.x) due to:
This PR revives the project, making it functional on modern systems, and extends its architecture by introducing Netlink support.
Key Changes
1. Modernization & Compilation Fixes
constants.handsockopt_levels.hwhich are no longer present in modern Linux headers.Makefileto use thegnu11standard. Adjusted flags to handle implicit function declarations and type conversions allowed in older C standards but flagged by modern GCC.2. New Feature: Netlink Integration
Verification
The tool is now fully compilable and functional on Ubuntu 24.04.
Test Case performed:
tcpsnitch -n -d ~/trace curl [https://google.com](https://google.com)