blob: 2ad76e970f52fab1cf1231b480488443c80c6490 [file] [log] [blame]
Lorenz Brun87339502023-03-07 15:49:42 +01001package main
2
3import (
4 "fmt"
5 "log"
6
7 "google.golang.org/protobuf/encoding/prototext"
8
9 netdump "source.monogon.dev/net/dump"
10)
11
12func main() {
13 netconf, _, err := netdump.Dump()
14 if err != nil {
15 log.Fatalf("failed to dump network configuration: %v", err)
16 }
17 fmt.Println(prototext.Format(netconf))
18}