Skip to content

Commit

Permalink
replace github.com/mdlayher/raw with github.com/mdlayher/packet
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Apr 16, 2024
1 parent 17ffdce commit 444744f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/nflog/pmtud.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/florianl/go-nflog/v2"
"github.com/go-logr/logr"
"github.com/mdlayher/ethernet"
"github.com/mdlayher/raw"
"github.com/mdlayher/packet"
"golang.org/x/net/ipv4"

"github.com/sapcc/go-pmtud/internal/config"
Expand Down Expand Up @@ -104,7 +104,7 @@ func (nfc *Controller) Start(startCtx context.Context) error {
cancel()
return 1
}
conn, err := raw.ListenPacket(interFace, 0x0800, nil)
conn, err := packet.Listen(interFace, packet.Raw, 0x0800, nil)
if err != nil {
metrics.Error.WithLabelValues(cfg.NodeName).Inc()
log.Error(err, "unable to create listen socket", "interface", interFace)
Expand Down Expand Up @@ -132,7 +132,7 @@ func (nfc *Controller) Start(startCtx context.Context) error {
cancel()
return 1
}
addr := &raw.Addr{
addr := &packet.Addr{
HardwareAddr: hwAddr,
}
if _, err := conn.WriteTo(bin, addr); err != nil {
Expand Down

0 comments on commit 444744f

Please sign in to comment.