code: func (e *Endpoint) WritePacket(_ *stack.Route, gso *stack.GSO, hdr buffer.Prependable, payload buffer.VectorisedView, protocol tcpip.NetworkProtocolNumber) *tcpip.Error {
  	p := PacketInfo{
  		Header:  hdr.View(),
  		Proto:   protocol,
  		Payload: payload.ToView(),
  		GSO:     gso,
  	}
  
  	select {
  	case e.C <- p:
  	default:
  	}
  
  	return nil
  }
docs: // WritePacket stores outbound packets into the channel.