INNER CODE UNIT · Go

main

deepflowio/deepflow · server/libs/xdppacket/cmd/afpacket/main.go:126

func main() {
	EnableStdoutLog()

	flag.Parse()
	fmt.Printf("option---ifname:%v, rx:%v, stats interval:%v\n",
		*Ifname, *direction, *StatsInterval)

	level, err := logging.LogLevel(strings.ToUpper(*LogLevel))
	if err != nil {
		fmt.Printf("error log level %v\n", *LogLevel)
		return
	}
	logging.SetLevel(level, "")

	if *Ifname == "" {
		fmt.Println("must specify interface name")
		return
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…