mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-07 05:40:52 +08:00
分片机制开始实现 大致是使用了一个map管理+小根堆自动排序实现的
This commit is contained in:
@@ -30,6 +30,7 @@ type hole struct {
|
||||
deleted bool
|
||||
}
|
||||
|
||||
// 重组器对象
|
||||
type reassembler struct {
|
||||
reassemblerEntry
|
||||
id uint32
|
||||
@@ -37,7 +38,7 @@ type reassembler struct {
|
||||
mu sync.Mutex
|
||||
holes []hole
|
||||
deleted int
|
||||
heap fragHeap
|
||||
heap fragHeap // 小根堆用来自动排序
|
||||
done bool
|
||||
creationTime time.Time
|
||||
}
|
||||
|
Reference in New Issue
Block a user