mirror of
https://github.com/soypat/lneto.git
synced 2026-08-20 14:39:02 +00:00
fix httptap incorrectly capturing GRO frames
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ func (efrm Frame) Payload() []byte {
|
||||
hl := efrm.HeaderLength()
|
||||
et := efrm.EtherTypeOrSize()
|
||||
if et.IsSize() {
|
||||
return efrm.buf[hl:et]
|
||||
return efrm.buf[hl : hl+int(et)]
|
||||
}
|
||||
return efrm.buf[hl:]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user