How to detect a network interface object creation in the system?

Hello,


I am wondering if there's some hook functions I can use in my kext to detect the network interface (e.g, "utunx") generation in the system? The workflow maybe look like this:

1. my kext loaded

2. some components/drivers or whatever in the system create a network interface object dynamically

3. my kext detects the networking interface generation event in above step 2


Any tips about that?


Thanks!