aboutsummaryrefslogtreecommitdiff
path: root/pcap-netmap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-05-31 16:01:51 -0700
committerGuy Harris <guy@alum.mit.edu>2017-05-31 16:01:51 -0700
commit28f1b2074cba0c89c3ccbcf0d359f86d6519a73e (patch)
treef2adb3bdc95d89219ace0acc9a19915369adb408 /pcap-netmap.c
parentc3cb444168c8d7470060f4d130452adcbd4dadd2 (diff)
Update a comment.
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.
Diffstat (limited to 'pcap-netmap.c')
-rw-r--r--pcap-netmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcap-netmap.c b/pcap-netmap.c
index 3c9de68a..cd856fe3 100644
--- a/pcap-netmap.c
+++ b/pcap-netmap.c
@@ -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;
}
-