Sample code to demonstrate the usage of NET_RT_IFLIST2
on macOS to get network metrics.
To run, execute the following commands:
$ make
$ ./network_metrics
For more details, see macOS Network Metrics Using sysctl().
Sample code to demonstrate the usage of NET_RT_IFLIST2
on macOS to get network metrics.
To run, execute the following commands:
$ make
$ ./network_metrics
For more details, see macOS Network Metrics Using sysctl().