mirror of
https://github.com/soypat/lneto.git
synced 2026-07-26 10:38:47 +00:00
ICMP tests and various fixes (#68)
* various icmp fixes * improve existing tests
This commit is contained in:
@@ -105,9 +105,6 @@ func (sb *StackIP) Demux(carrierData []byte, offset int) error {
|
||||
off := ifrm.HeaderLength()
|
||||
totalLen := ifrm.TotalLength()
|
||||
proto := ifrm.Protocol()
|
||||
if proto == lneto.IPProtoICMP {
|
||||
return sb.recvicmp(ifrm.Payload())
|
||||
}
|
||||
node := sb.handlers.nodeByProto(uint16(proto))
|
||||
// nodeIdx := getNodeByProto(sb.handlers, uint16(proto))
|
||||
if node == nil {
|
||||
|
||||
Reference in New Issue
Block a user