百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
4

4.4BSD-Lite2

> 编程语言
开源

来自 4.4BSD-Lite2 的用户模式 TCP/IP 堆栈,这是《TCP/IP 图解》第二卷的配套资料

377 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

来自 4.4BSD-Lite2 的用户模式 TCP/IP 堆栈,这是《TCP/IP 图解》第二卷的配套资料

User-mode 4.4BSD-Lite2 TCP/IP Stack

User-land TCP/IP stack from 4.4BSD-Lite2, a companion of W. Richard Stevens's immortal work TCP/IP Illustrated, Volume 2: The Implementation, with a focus on TCP chapters. TCP/IP Illustrated vol.2 uses 4.4BSD-Lite as its example, a slightly early version. TCP/IP code of 4.4BSD-Lite2 is roughly the same as FreeBSD 2.0.

This is not a fork of https://github.com/sergev/4.4BSD-Lite2, which contains the whole 4.4BSD-Lite2.tar.gz. This repository only contains usr/src/sys of the tarball, ie. the kernel source.

How to build and play

bash
$ make

This build a few executables:

  • objs/test_init TCP three-way handshake, you can step through code with GDB
  • objs/test_self TCP self-connection
  • objs/test_pigeon ICMP echo request/response
  • objs/test_tun Connect to host with TAP/TUN device.
    • BSD stack is attached to tun0, its IP address is 192.168.0.2, listens on port 1234.
    • Try ping 192.168.0.2 or nc 192.168.0.2 1234, also watch the packets with tcpdump -n -i tun0.

This TCP/IP stack is alive, using tap/tun device on Linux. (WIP)

Unofficial companion site of TCP/IP Illustrated vol. 2

See also

For running recent FreeBSD TCP/IP stack in user mode, take a look at https://github.com/pkelsey/libuinet and https://github.com/cloudius-systems/osv.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言