[−][src]Function pnet::datalink::dummy::dummy_interface
pub fn dummy_interface(i: u8) -> NetworkInterface
Generates a fake NetworkInterface
.
The name of the interface will be ethX
where X is the integer i
.
The index will be i
.
The MAC will be 01:02:03:04:05:i
.