From 2a6286aa06b043240dd8c3524668455562d466d8 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 18 Jan 2017 13:36:27 -0800 Subject: Have a pcap_if_list_t structure for use by the findalldevs code. It's not part of the API, but it's an internal structure used by the findalldevs code. Currently, it just has a pointer to the beginning of the list, but it could change in order to speed up the process of adding to the list. --- pcap-netfilter-linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pcap-netfilter-linux.c') diff --git a/pcap-netfilter-linux.c b/pcap-netfilter-linux.c index 446f5f08..49438cda 100644 --- a/pcap-netfilter-linux.c +++ b/pcap-netfilter-linux.c @@ -635,7 +635,7 @@ netfilter_create(const char *device, char *ebuf, int *is_ours) } int -netfilter_findalldevs(pcap_if_t **alldevsp, char *err_str) +netfilter_findalldevs(pcap_if_list_t *devlistp, char *err_str) { int sock; @@ -650,9 +650,9 @@ netfilter_findalldevs(pcap_if_t **alldevsp, char *err_str) } close(sock); - if (add_dev(alldevsp, NFLOG_IFACE, 0, "Linux netfilter log (NFLOG) interface", err_str) == NULL) + if (add_dev(devlistp, NFLOG_IFACE, 0, "Linux netfilter log (NFLOG) interface", err_str) == NULL) return -1; - if (add_dev(alldevsp, NFQUEUE_IFACE, 0, "Linux netfilter queue (NFQUEUE) interface", err_str) == NULL) + if (add_dev(devlistp, NFQUEUE_IFACE, 0, "Linux netfilter queue (NFQUEUE) interface", err_str) == NULL) return -1; return 0; } -- cgit v1.2.3