The following code uses ioctl to read the ip and mac addresses of the eth2 interface:
The same can be done with netlink, that is, netlink socket. For details, see Baidu:
The following code uses ioctl to read the ip and mac addresses of the eth2 interface:
The same can be done with netlink, that is, netlink socket. For details, see Baidu: