MCPcopy Create free account
hub / github.com/coder/envbox / NetlinkMTU

Function NetlinkMTU

xunix/net.go:8–15  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

6)
7
8func NetlinkMTU(name string) (int, error) {
9 defaultLink, err := netlink.LinkByName(name)
10 if err != nil {
11 return 0, xerrors.Errorf("get %s: %w", name, err)
12 }
13
14 return defaultLink.Attrs().MTU, nil
15}

Callers 1

dockerdArgsFunction · 0.92

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected