code: func (s *Stack) NewRawEndpoint(transport tcpip.TransportProtocolNumber, network tcpip.NetworkProtocolNumber, waiterQueue *waiter.Queue) (tcpip.Endpoint, *tcpip.Error) {
  	if !s.raw {
  		return nil, tcpip.ErrNotPermitted
  	}
  
  	t, ok := s.transportProtocols[transport]
  	if !ok {
  		return nil, tcpip.ErrUnknownProtocol
  	}
  
  	return t.proto.NewRawEndpoint(s, network, waiterQueue)
  }
docs: // NewRawEndpoint creates a new raw transport layer endpoint of the given
  // protocol. Raw endpoints receive all traffic for a given protocol regardless
  // of address.