mirror of
https://github.com/soypat/lneto.git
synced 2026-08-11 10:23:47 +00:00
StackNode refactor: add offsetToIP argument to Encapsulate
This commit is contained in:
@@ -44,7 +44,7 @@ func TestBasicStack2(t *testing.T) {
|
||||
|
||||
func expectExchange(t *testing.T, from, to *StackIP, buf []byte) {
|
||||
t.Helper()
|
||||
n, err := from.Encapsulate(buf, 0)
|
||||
n, err := from.Encapsulate(buf, -1, 0)
|
||||
if err != nil {
|
||||
t.Error("expectExchange:encapsulate:", err)
|
||||
} else if n == 0 {
|
||||
|
||||
Reference in New Issue
Block a user