code: func (d *transportDemuxer) unregisterRawEndpoint(netProto tcpip.NetworkProtocolNumber, transProto tcpip.TransportProtocolNumber, ep RawTransportEndpoint) {
  	eps, ok := d.protocol[protocolIDs{netProto, transProto}]
  	if !ok {
  		panic(fmt.Errorf("tried to unregister endpoint with unsupported network and transport protocol pair: %d, %d", netProto, transProto))
  	}
  
  	eps.mu.Lock()
  	defer eps.mu.Unlock()
  	for i, rawEP := range eps.rawEndpoints {
  		if rawEP == ep {
  			eps.rawEndpoints = append(eps.rawEndpoints[:i], eps.rawEndpoints[i+1:]...)
  			return
  		}
  	}
  }
docs: // unregisterRawEndpoint unregisters the raw endpoint for the given transport
  // protocol such that it won't receive any more packets.