MCPcopy Index your code
hub / github.com/coder/coder / withMTU

Function withMTU

tailnet/test/integration/network.go:679–684  ·  view source on GitHub ↗
(mtu int)

Source from the content-addressed store, hash-verified

677type linkOption func(attrs netlink.LinkAttrs) netlink.LinkAttrs
678
679func withMTU(mtu int) linkOption {
680 return func(attrs netlink.LinkAttrs) netlink.LinkAttrs {
681 attrs.MTU = mtu
682 return attrs
683 }
684}
685
686// createVethPair creates a veth pair with the given names.
687func createVethPair(parentVethName, peerVethName string, options ...linkOption) error {

Callers 1

SetupNetworkingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected