I use the open() function to open the ethernet device en0.
cpc = open("/dev/io-net/en0", O_WRONLY);
The return value cpc is 3 . I think the device is opened correctly.
Then I use the write() function.
The return value len_written is -1.While I get the error info,It shows
that “Function is not implemented”.
Then I use the ifconfig command , I can see the en0 device .
Could someone tell me how to solve it ? Thanks a lot.