MCPcopy Index your code
hub / github.com/google/gvisor / Interfaces

Method Interfaces

pkg/sentry/socket/netstack/stack.go:134–140  ·  view source on GitHub ↗

Interfaces implements inet.Stack.Interfaces.

()

Source from the content-addressed store, hash-verified

132
133// Interfaces implements inet.Stack.Interfaces.
134func (s *Stack) Interfaces() map[int32]inet.Interface {
135 is := make(map[int32]inet.Interface)
136 for id, ni := range s.Stack.NICInfo() {
137 is[int32(id)] = makeInterfaceInfo(&ni)
138 }
139 return is
140}
141
142// InterfaceIDs implements inet.Stack.InterfaceIDs.
143func (s *Stack) InterfaceIDs() []int32 {

Callers 3

InterfaceIDsMethod · 0.95
SetInterfaceMethod · 0.95
localRouteMethod · 0.95

Calls 2

makeInterfaceInfoFunction · 0.85
NICInfoMethod · 0.80

Tested by

no test coverage detected