PcapHandle.inject

int inject(const(void)[] buf)

Injects a packet into the network.

Parameters

bufThe packet data to inject.

Returns

The number of bytes written on success, or -1 on error.