I am making an application using tun interface tun0. I have been successfully able to send and receive packets through the interface. Is there any way to know when the tun interface is opened as in ifconfig tun0 up
?
I want do some part of my underlying device initialization only when the interface is active. (added later) I am following the examples from http://backreference.org/2010/03/26/tuntap-interface-tutorial/