on MacOS I am using raw socket and PF_Route options to monitor the routing table changes but looks like that is not supported in iOS
what are the other ways to achieve real time monitoring in iOS ?
Post
Replies
Boosts
Views
Activity
I have tried
networksetup -setnetworkserviceenabled "USB 10/100/1000 LAN" on
networksetup -setnetworkserviceenabled "USB 10/100/1000 LAN" off
and same with ifconfig cmd
sudo ifconfig down
sudo ifconfig up
I am able to bounces the interfaces with these commands but the network connectivity is not restored properly for USB 10/100/1000 LAN interface
May I know is there any other way we can achieve this programmatically using network framework API available for Mac