mirror of
https://github.com/soypat/lneto.git
synced 2026-08-21 23:19:03 +00:00
remove NodeARP in favor of arp.Handler; fix bug in IP stack node handling; use registerNode where applicable
This commit is contained in:
@@ -69,12 +69,11 @@ func (ls *StackEthernet) Register(h StackNode) error {
|
||||
return errProtoRegistered
|
||||
}
|
||||
}
|
||||
ls.handlers = append(ls.handlers, node{
|
||||
return registerNode(&ls.handlers, node{
|
||||
demux: h.Demux,
|
||||
encapsulate: h.Encapsulate,
|
||||
proto: eproto,
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ls *StackEthernet) Demux(carrierData []byte, frameOffset int) (err error) {
|
||||
|
||||
Reference in New Issue
Block a user