@Override
        public void write(byte[] packetBytes, int offset, int len) throws IOException {
            if((offset < 0) || (len < 0) || (offset + len > packetBytes.length)) {
                throw new IndexOutOfBoundsException();
            }
            try {
                // Create a new EthernetPacket with the raw content of the packet bytes.
                Packet rawPacket = EthernetPacket.newPacket(packetBytes, offset, len);
                // Send the packet.
                sendHandle.sendPacket(rawPacket);
            } catch (IllegalRawDataException | NotOpenException | PcapNativeException e) {
                throw new IOException("Error sending packet", e);
            }
        }
This output stream simply discards anything it should send.
plc4j/utils/raw-sockets/src/main/java/org/apache/plc4x/java/utils/rawsockets/netty/RawSocketChannel.java