Wireshark-bugs: [Wireshark-bugs] [Bug 7374] Update interface lists on interface add/removal
Date: Tue, 19 Jun 2012 12:44:39 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7374

--- Comment #5 from Pontus Fuchs <pontus.fuchs@xxxxxxxxx> 2012-06-19 12:44:39 PDT ---
(In reply to comment #4)
> I have code to do this on Mac OS X and FreeBSD... However, currently the
> interface stuff is
> handled by dumpcap, not by Wireshark itself. If we rescan the local interfaces,
> we use
> dumpcap, which uses libpcap. Using a different method might result in some
> inconsistencies.
> I would prefer to use a single mechanism, not two.
> 
> It might be a possibility to use a mechanism to figure out that something might
> have changed
> (reading on a routing socket on *BSD, for example) and if there is an
> indication that something
> might have changed, use the current mechanism to do the rescan. This would
> avoid inconsistencies.

This is exactly how this patch works. It only uses the OS hotplug to detect
change. The actual rescan is done using dumpcap.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.