E-mail:for_rest@foxmail.com 老衲五木出品
目录
1 移植综述------------------------------------------------------------------------------------------------------ 4
2 动态内存管理------------------------------------------------------------------------------------------------ 6
3 数据包 pbuf -------------------------------------------------------------------------------------------------- 9
4 pbuf 释放---------------------------------------------------------------------------------------------------13
5 网络接口结构-----------------------------------------------------------------------------------------------16
6 以太网数据接收--------------------------------------------------------------------------------------------20
7 ARP 表 -----------------------------------------------------------------------------------------------------23
8 ARP 表查询 -----------------------------------------------------------------------------------------------26
9 ARP 层流程 -----------------------------------------------------------------------------------------------28
10 IP 层输入 -------------------------------------------------------------------------------------------------31
11 IP 分片重装 1 --------------------------------------------------------------------------------------------34
12 IP 分片重装 2--------------------------------------------------------------------------------------------37
13 ICMP 处理 -----------------------------------------------------------------------------------------------40
14 TCP 建立与断开 ----------------------------------------------------------------------------------------43
15 TCP 状态转换 -------------------------------------------------------------------------------------------46
16 TCP 控制块 ----------------------------------------------------------------------------------------------49
17 TCP 建立流程 -------------------------------------------------------------------------------------------53
18 TCP 状态机 ----------------------------------------------------------------------------------------------56
19 TCP 输入输出函数 1 -----------------------------------------------------------------------------------60
20 TCP 输入输出函数 2 -----------------------------------------------------------------------------------63
21 TCP 滑动窗口 -------------------------------------------------------------------------------------------66
22 TCP 超时与重传 ----------------------------------------------------------------------------------------69
23 TCP 慢启动与拥塞避免 -------------------------------------------------------------------------------73
24 TCP 快速恢复重传和 Nagle 算法 -------------------------------------------------------------------76
25 TCP 坚持与保活定时器 -------------------------------------------------------------------------------80
26 TCP 定时器 ----------------------------------------------------------------------------------------------84
27 TCP 终结与小结 ----------------------------------------------------------------------------------------88
28 API 实现及相关数据结构-----------------------------------------------------------------------------91
29 API 消息机制 --------------------------------------------------------------------------------------------94
30 API 函数及编程实例 -----------------------------------------------------------------------------------97