mirror of
https://github.com/soypat/lneto.git
synced 2026-09-03 21:39:04 +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:
@@ -50,6 +50,9 @@ func (ps *StackPorts) Encapsulate(b []byte, offset int) (n int, err error) {
|
||||
}
|
||||
var i int
|
||||
for i = 0; i < len(ps.handlers); i++ {
|
||||
if ps.handlers[i].IsInvalid() {
|
||||
continue
|
||||
}
|
||||
n, err = ps.handlers[i].encapsulate(b, offset)
|
||||
if err != nil || n > 0 {
|
||||
if ps.handleResult(i, n, err) {
|
||||
|
||||
Reference in New Issue
Block a user