Attempts to read a specified number of packets from an interface.
- macOS 10.10+
The interface reference.
On return, this parameter is populated with an array of packets read.
The number of packets to read.
On return, this parameter is populated with the number of packets read, or
0no packets are available to be read.
Returns vmnet on success, or an error code on failure. See vmnet for possible values.
Each packet buffer passed should be at least as large as the value of
vmnet for the interface.