remove legacy remnants and move ip,udp,ethernet logic into subpackages

This commit is contained in:
soypat
2025-02-20 16:00:55 -03:00
parent 0606a04f45
commit f86bb6f01a
22 changed files with 590 additions and 1885 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import (
"log"
"testing"
"github.com/soypat/lneto/lneto2"
"github.com/soypat/lneto/ethernet"
)
func TestHandler(t *testing.T) {
@@ -15,7 +15,7 @@ func TestHandler(t *testing.T) {
MaxQueries: 1,
MaxPending: 1,
HardwareType: 1,
ProtocolType: lneto2.EtherTypeIPv4,
ProtocolType: ethernet.TypeIPv4,
})
if err != nil {
t.Fatal(err)
@@ -26,7 +26,7 @@ func TestHandler(t *testing.T) {
MaxQueries: 1,
MaxPending: 1,
HardwareType: 1,
ProtocolType: lneto2.EtherTypeIPv4,
ProtocolType: ethernet.TypeIPv4,
})
if err != nil {
t.Fatal(err)