mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-09 07:19:17 +07:00
chore
This commit is contained in:
@ -54,17 +54,6 @@ func cidrToBpfLpmKey(prefix netip.Prefix) _bpfLpmKey {
|
||||
}
|
||||
}
|
||||
|
||||
// A utility to convert the values to proper strings.
|
||||
func int8ToStr(arr []int8) string {
|
||||
b := make([]byte, 0, len(arr))
|
||||
for _, v := range arr {
|
||||
if v == 0x00 {
|
||||
break
|
||||
}
|
||||
b = append(b, byte(v))
|
||||
}
|
||||
return string(b)
|
||||
}
|
||||
func BatchUpdate(m *ebpf.Map, keys interface{}, values interface{}, opts *ebpf.BatchOptions) (n int, err error) {
|
||||
var old bool
|
||||
version, e := internal.KernelVersion()
|
||||
|
@ -966,7 +966,6 @@ int tproxy_ingress(struct __sk_buff *skb) {
|
||||
key_src.port = tcph->source;
|
||||
key_src.proto = l4_proto;
|
||||
__u8 outbound;
|
||||
// No record. No DNS requests before.
|
||||
if (unlikely(tcp_state_syn)) {
|
||||
// New TCP connection.
|
||||
// bpf_printk("[%X]New Connection", bpf_ntohl(tcph->seq));
|
||||
|
Reference in New Issue
Block a user