Files
dae/component/control/control.go

15 lines
611 B
Go
Raw Normal View History

2023-01-23 19:54:21 +08:00
/*
* SPDX-License-Identifier: AGPL-3.0-only
2023-01-28 13:56:06 +08:00
* Copyright (c) since 2022, v2rayA Organization <team@v2raya.org>
2023-01-23 19:54:21 +08:00
*/
package control
// $BPF_CLANG, $BPF_STRIP, $BPF_CFLAGS, $BPF_TARGET are set by the Makefile.
2023-01-31 20:25:55 +08:00
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -cc $BPF_CLANG -strip $BPF_STRIP -cflags $BPF_CFLAGS -target $BPF_TARGET bpf kern/tproxy.c -- -I./headers
// Separate bpfObjectsLan and bpfObjectsWan from bpfObjects.
//go:generate go clean -cache
//go:generate go run github.com/v2rayA/dae/cmd/internal/generate_bpf_objects -o bpf_objects_wan_lan.go
//go:generate go fmt bpf_objects_wan_lan.go