mirror of
https://github.com/soypat/lneto.git
synced 2026-08-19 22:24:03 +00:00
internet: add handlers data structure
This commit is contained in:
@@ -17,7 +17,7 @@ type StackUDPPort struct {
|
||||
}
|
||||
|
||||
func (sudp *StackUDPPort) SetStackNode(node StackNode, raddr []byte, rmport uint16) {
|
||||
sudp.h = nodeFromStackNode(node, node.LocalPort(), node.Protocol())
|
||||
sudp.h = nodeFromStackNode(node, node.LocalPort(), node.Protocol(), raddr)
|
||||
sudp.rmport = rmport
|
||||
sudp.raddr = append(sudp.raddr[:0], raddr...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user