fix: remove unsupported (on old kernel) bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_NO_CSUM_RESET

This commit is contained in:
mzz2017
2023-02-01 11:10:41 +08:00
parent 5cbb1f963c
commit 268a52a934
2 changed files with 16 additions and 11 deletions

View File

@ -21,6 +21,9 @@ var (
Use: "run",
Short: "Run dae in the foreground",
Run: func(cmd *cobra.Command, args []string) {
if cfgFile == "" {
logrus.Fatalln("Argument \"--config\" or \"-c\" is required but not provided.")
}
if err := Run(); err != nil {
logrus.Fatalln(err)
}
@ -29,7 +32,7 @@ var (
)
func init() {
runCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "config.dae", "config file")
runCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file")
}
func Run() (err error) {