mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-26 06:00:20 +08:00
tcp报文头结构可视化解析;优化IP udp报文的可视化解析
This commit is contained in:
@@ -121,7 +121,7 @@ func (e *endpoint) WritePacket(r *stack.Route, hdr buffer.Prependable, payload b
|
||||
// 收到ip包的处理
|
||||
func (e *endpoint) HandlePacket(r *stack.Route, vv buffer.VectorisedView) {
|
||||
// 得到ip报文
|
||||
h := header.IPv4(vv.ToView())
|
||||
h := header.IPv4(vv.First())
|
||||
// 检查报文是否有效
|
||||
if !h.IsValid(vv.Size()) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user