Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Routing table change notification on Mac OS X

Tags:

macos

I would like to monitor routing table changes on Mac OS X. Is there any way to catch the changes of the routing table? Just like API NotifyRouteChange on Microsoft Windows, which would causes a notification to be sent to the caller whenever a change occurs in the IPv4 routing table.

like image 257
user3113626 Avatar asked Oct 16 '25 15:10

user3113626


1 Answers

well,i turned to route(8) command source code, and i found the modifier 'monitor'. "sudo route monitor"

like image 54
user3113626 Avatar answered Oct 18 '25 07:10

user3113626