Interfaces implements inet.Stack.Interfaces.
()
| 132 | |
| 133 | // Interfaces implements inet.Stack.Interfaces. |
| 134 | func (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. |
| 143 | func (s *Stack) InterfaceIDs() []int32 { |
no test coverage detected