Yuri <y...@rawbw.com> wrote in <de8fe1fc-81a1-80f3-82e5-1ec41f639...@rawbw.com>:
yu> I am asking because wireshark doesn't sense the interface list yu> changes, and it just always shows the list from the time it was yu> launched . You can open a routing socket and watch it to see if RTM_IFANNOUNCE message is coming. The following command lines (on two different terminals on the same machine) show how this works when a new interface arrives: termA% route monitor (this waits for routing messages) termB# ifconfig tap0 create An example code to handle routing messages can be found in src/sbin/route/route.c. -- Hiroki
pgpYGqOwuFwCZ.pgp
Description: PGP signature