blob: 2ad76e970f52fab1cf1231b480488443c80c6490 [file] [log] [blame] [edit]
package main
import (
"fmt"
"log"
"google.golang.org/protobuf/encoding/prototext"
netdump "source.monogon.dev/net/dump"
)
func main() {
netconf, _, err := netdump.Dump()
if err != nil {
log.Fatalf("failed to dump network configuration: %v", err)
}
fmt.Println(prototext.Format(netconf))
}