mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-22 02:07:50 +07:00
chore: more prompts
This commit is contained in:
parent
8451485064
commit
c2d2b0d58f
@ -227,6 +227,7 @@ func newControlPlane(log *logrus.Logger, bpf interface{}, conf *config.Config) (
|
||||
break
|
||||
}
|
||||
log.Infof("Bad status: %v (%v)", resp.Status, resp.StatusCode)
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
log.Infoln("Network online.")
|
||||
}
|
||||
|
@ -11,10 +11,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/cilium/ebpf"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/daeuniverse/dae/common"
|
||||
"github.com/daeuniverse/dae/common/consts"
|
||||
"github.com/daeuniverse/dae/pkg/ebpf_internal"
|
||||
"github.com/sirupsen/logrus"
|
||||
"net/netip"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@ -210,7 +210,9 @@ retryLoadBpf:
|
||||
}
|
||||
}
|
||||
if strings.Contains(err.Error(), "no BTF found for kernel version") {
|
||||
err = fmt.Errorf("%w: maybe installing the linux-headers package will solve it", err)
|
||||
err = fmt.Errorf("%w: you should re-compile linux kernel with BTF configurations; see docs for more information", err)
|
||||
} else if strings.Contains(err.Error(), "unknown func bpf_trace_printk") {
|
||||
err = fmt.Errorf(`%w: please try to compile dae without bpf_printk; example of cross-compilation to arm64: make GOARCH=arm64 CGO_ENABLED=0 CFLAGS="-D__REMOVE_BPF_PRINTK"`, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -88,6 +88,6 @@ routing {
|
||||
t.Fatalf("\n%v", err)
|
||||
}
|
||||
for _, section := range sections {
|
||||
t.Logf("\n%v", section.String())
|
||||
t.Logf("\n%v", section.String(false, false))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user