From Weston Schmidt via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8689:
[metze/wireshark/wip.git] / capture_ifinfo.h
index 20207aedcf4309aa988133a81ab0acde941da42a..7802598bef466f66a5399bba891802acce0de818 100644 (file)
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef __CAPTURE_IFINFO_H__
@@ -35,7 +35,12 @@ extern "C" {
  */
 typedef struct {
        char    *name;          /* e.g. "eth0" */
-       char    *description;   /* from OS, e.g. "Local Area Connection" or NULL */
+       char    *friendly_name; /* from OS, e.g. "Local Area Connection", or
+                                  NULL if not available */
+       char    *vendor_description;
+                               /* vendor description from pcap_findalldevs(),
+                                  e.g. "Realtek PCIe GBE Family Controller",
+                                  or NULL if not available */
        GSList  *addrs;         /* containing address values of if_addr_t */
        gboolean loopback;      /* TRUE if loopback, FALSE otherwise */
 } if_info_t;
@@ -98,6 +103,12 @@ void free_if_capabilities(if_capabilities_t *caps);
 
 void add_interface_to_remote_list(if_info_t *if_info);
 
+/**
+ * Get the type of an interface, given its name and description.
+ */
+extern guint
+get_interface_type(gchar *name, gchar *description);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */