notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Port details
tcpstats-kmod Kernel module for system-wide TCP socket statistics
1.0.4 netnew! on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: dave.seddon.ca@gmail.com search for ports maintained by this maintainer
Port Added: 2026-05-01 11:42:12
Last Update: 2026-05-01 11:39:58
Commit Hash: 21e4e79
Also Listed In: kld
License: MIT
WWW:
https://github.com/randomizedcoder/bsd-xtcp
Description:
Kernel module providing system-wide TCP socket statistics via /dev/tcpstats. The tcpstats module creates a read-only character device that streams fixed-size 320-byte records containing per-connection TCP metrics including addresses, ports, TCP state, congestion control parameters (cwnd, ssthresh), RTT measurements, retransmit counts, ECN statistics, and process attribution. Features include in-kernel filtering by port, TCP state, IP version, and CIDR address ranges, with DoS protection via tunable concurrent reader and file descriptor limits.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (6 items)
Collapse this list.
  1. /boot/modules/tcpstats.ko
  2. share/man/man4/tcpstats.4.gz
  3. @kld /boot/modules
  4. /usr/local/share/licenses/tcpstats-kmod-1.0.4.1500068/catalog.mk
  5. /usr/local/share/licenses/tcpstats-kmod-1.0.4.1500068/LICENSE
  6. /usr/local/share/licenses/tcpstats-kmod-1.0.4.1500068/MIT
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • tcpstats-kmod>0:net/tcpstats-kmod
To install the port:
cd /usr/ports/net/tcpstats-kmod/ && make install clean
To add the package, run one of these commands:
  • pkg install net/tcpstats-kmod
  • pkg install tcpstats-kmod
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: tcpstats-kmod
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1777569252 SHA256 (randomizedcoder-bsd-xtcp-v1.0.4_GH0.tar.gz) = 87d3488c1b810f6316e88ebc6e0002b6f9fd6eb0aa91ccd05eb6b676b35c2ac1 SIZE (randomizedcoder-bsd-xtcp-v1.0.4_GH0.tar.gz) = 312454

Packages (timestamps in pop-ups are UTC):
tcpstats-kmod
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest-1.0.4.1500068n/a-n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
This port has no dependencies.
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for tcpstats-kmod-1.0.4.1500068: DTRACE=off: Enable DTrace SDT probes STATS=off: Enable per-socket statistics counters ===> Use 'make config' to modify these settings
Options name:
net_tcpstats-kmod
USES:
kmod uidfix
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/randomizedcoder/bsd-xtcp/tar.gz/v1.0.4?dummy=/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.0.4
01 May 2026 11:39:58
commit hash: 21e4e7904345ee52dcab1ca19041e46105eec95fcommit hash: 21e4e7904345ee52dcab1ca19041e46105eec95fcommit hash: 21e4e7904345ee52dcab1ca19041e46105eec95fcommit hash: 21e4e7904345ee52dcab1ca19041e46105eec95f files touched by this commit
Pouria Mousavizadeh Tehrani (pouria) search for other commits by this committer
Author: randomizedcoder
net/tcpstats-{kmod,reader}: Add new ports

tcpstats-kmod is a FreeBSD kernel module that exports per-connection
TCP socket statistics via a /dev/tcpstats character device.
Provides 320-byte fixed-size records containing addresses, ports,
TCP state, congestion control parameters, RTT measurements,
retransmit counts, and ECN state.
Includes a tcpstats(4) man page.

tcpstats-reader is a companion CLI tool that reads from /dev/tcpstats
and outputs JSON Lines to stdout.
Includes a tcpstats-reader(1) man page.

WWW: https://github.com/randomizedcoder/bsd-xtcp

Signed-off-by:	randomizedcoder <dave.seddon.ca@gmail.com>
Approved by:	fuz (ports)
Reviewed by:	fuz, pouria
Pull-Request:	https://github.com/freebsd/freebsd-ports/pull/497

Number of commits found: 1