mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-12 18:00:49 +01:00
Fix build without import C
This commit is contained in:
parent
f185107268
commit
32b7ced0f8
@ -115,5 +115,6 @@ func _BpfClose(closers ...io.Closer) error {
|
||||
}
|
||||
|
||||
// Do not access this directly.
|
||||
//
|
||||
//go:embed bpf_bpfeb.o
|
||||
var _BpfBytes []byte
|
||||
|
Binary file not shown.
@ -115,5 +115,6 @@ func _BpfClose(closers ...io.Closer) error {
|
||||
}
|
||||
|
||||
// Do not access this directly.
|
||||
//
|
||||
//go:embed bpf_bpfel.o
|
||||
var _BpfBytes []byte
|
||||
|
Binary file not shown.
@ -3,11 +3,11 @@ package forwarder
|
||||
import (
|
||||
_ "embed"
|
||||
"encoding/binary"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net"
|
||||
|
||||
"github.com/cilium/ebpf/link"
|
||||
"github.com/cilium/ebpf/rlimit"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -17,7 +17,7 @@ const (
|
||||
|
||||
// libbpf-dev, libc6-dev-i386-amd64-cross
|
||||
//
|
||||
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -cc clang-14 bpf port_fwd.c -- -I /usr/x86_64-linux-gnu/include
|
||||
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -cc clang-14 bpf src/port_fwd.c -- -I /usr/x86_64-linux-gnu/include
|
||||
type TrafficForwarder struct {
|
||||
link link.Link
|
||||
iFaceName string
|
||||
|
Loading…
Reference in New Issue
Block a user