fentry

command
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

This program demonstrates attaching a fentry eBPF program to tcp_connect. It prints the command/IPs/ports information once the host sent a TCP SYN packet to a destination. It supports IPv4 at this example.

Sample output:

examples# go run -exec sudo ./fentry 2021/11/06 17:51:15 Comm Src addr Port -> Dest addr Port 2021/11/06 17:51:25 wget 10.0.2.15 49850 -> 142.250.72.228 443 2021/11/06 17:51:46 ssh 10.0.2.15 58854 -> 10.0.2.1 22 2021/11/06 18:13:15 curl 10.0.2.15 54268 -> 104.21.1.217 80

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL