code: func (e *endpoint) dispatchLoop() *tcpip.Error {
  	for {
  		cont, err := e.inboundDispatcher()
  		if err != nil || !cont {
  			if e.closed != nil {
  				e.closed(err)
  			}
  			return err
  		}
  	}
  }
docs: // dispatchLoop reads packets from the file descriptor in a loop and dispatches
  // them to the network stack.