mirror of
https://github.com/soypat/lneto.git
synced 2026-08-15 04:13:44 +00:00
split out node callback between tinygo and go to avoid heap allocs
This commit is contained in:
@@ -136,7 +136,7 @@ func (sb *StackIP) Demux(carrierData []byte, offset int) error {
|
||||
}
|
||||
}
|
||||
sb.handlers.info("ipDemux", slog.String("ipproto", proto.String()), slog.Int("plen", int(totalLen)))
|
||||
err = node.demux(frame[:totalLen], off)
|
||||
err = node.callbacks.Demux(frame[:totalLen], off)
|
||||
if sb.handlers.tryHandleError(node, err) {
|
||||
sb.handlers.info("ipclose", slog.String("proto", proto.String()))
|
||||
err = nil
|
||||
|
||||
Reference in New Issue
Block a user