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 -2
View File
@@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"github.com/soypat/lneto/ethernet"
"github.com/soypat/lneto/lneto2"
)
@@ -11,7 +12,7 @@ type Handler struct {
ourHWAddr []byte
ourProtoAddr []byte
htype uint16
protoType lneto2.EtherType
protoType ethernet.Type
pending [][sizeHeaderv6]byte
queries []queryResult
}
@@ -22,7 +23,7 @@ type HandlerConfig struct {
MaxQueries int
MaxPending int
HardwareType uint16
ProtocolType lneto2.EtherType
ProtocolType ethernet.Type
}
func NewHandler(cfg HandlerConfig) (*Handler, error) {