]> The Tcpdump Group git mirrors - libpcap/commitdiff
Update a comment.
authorGuy Harris <[email protected]>
Wed, 31 May 2017 23:01:51 +0000 (16:01 -0700)
committerGuy Harris <[email protected]>
Wed, 31 May 2017 23:01:51 +0000 (16:01 -0700)
Indicate why we don't try to enumerate netmap devices, and mark the
arguments to the findalldevs routine as unused while we're at it.

pcap-netmap.c

index 3c9de68aee4abfdefc344c7eca3ab28860d47888..cd856fe303aec2b38d6edadc85b19d5ba3ba15be 100644 (file)
@@ -244,11 +244,12 @@ pcap_netmap_create(const char *device, char *ebuf, int *is_ours)
 }
 
 /*
- * XXX - is there a way to enumerate the netmap devices?
+ * The "device name" for netmap devices isn't a name for a device, it's
+ * an expression that indicates how the device should be set up, so
+ * there's no way to enumerate them.
  */
 int
-pcap_netmap_findalldevs(pcap_if_list_t *devlistp, char *err_str)
+pcap_netmap_findalldevs(pcap_if_list_t *devlistp _U_, char *err_str _U_)
 {
        return 0;
 }
-