mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-05 12:56:55 +08:00
好难 好难 好难 ListenLoop的Sleeper为什么没有被唤醒
This commit is contained in:
@@ -23,7 +23,7 @@ func (p Prependable) UsedLength() int {
|
||||
return len(p.buf) - p.usedIdx
|
||||
}
|
||||
|
||||
// 从内到外暴露报文头的协议 eth|ipv4|tcp
|
||||
// Prepend 向前扩展size个字节
|
||||
func (p *Prependable) Prepend(size int) []byte {
|
||||
if size > p.usedIdx {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user