CreateNIC creates a NIC with the provided id and LinkEndpoint and calls LinkEndpoint.Attach to bind ep with a NetworkDispatcher.
(id tcpip.NICID, ep LinkEndpoint)
| 978 | // CreateNIC creates a NIC with the provided id and LinkEndpoint and calls |
| 979 | // LinkEndpoint.Attach to bind ep with a NetworkDispatcher. |
| 980 | func (s *Stack) CreateNIC(id tcpip.NICID, ep LinkEndpoint) tcpip.Error { |
| 981 | return s.CreateNICWithOptions(id, ep, NICOptions{}) |
| 982 | } |
| 983 | |
| 984 | // GetLinkEndpointByName gets the link endpoint specified by name. |
| 985 | func (s *Stack) GetLinkEndpointByName(name string) LinkEndpoint { |