aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/extcap-base.h
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-02-23 14:33:54 +0100
committerRoland Knall <rknall@gmail.com>2016-03-04 05:53:56 +0000
commit68d4ba212c839631c639974b36fc283a9e90bc5e (patch)
tree592cd199aefc2e487a5d044c178fffdba448614e /extcap/extcap-base.h
parent5a66318272c3d6db4fc372976e761fa5e285909e (diff)
extcap: add local_interfaces_to_list() to wsutil.
This new function abstracts the creation of a list of the local interfaces that will be used by future extcaps to generate specific filters. Sshdump now uses it to create a pcap filter. Change-Id: I5b75a266f81104b3c9bcb3e51de246b7cc8785ce Reviewed-on: https://code.wireshark.org/review/14092 Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap/extcap-base.h')
-rw-r--r--extcap/extcap-base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/extcap/extcap-base.h b/extcap/extcap-base.h
index 3e2f847b84..2c6763a025 100644
--- a/extcap/extcap-base.h
+++ b/extcap/extcap-base.h
@@ -24,6 +24,8 @@
#ifndef __EXTCAP_BASE_H__
#define __EXTCAP_BASE_H__
+#include "config.h"
+
#include <glib.h>
#include <glib/gprintf.h>
#include <stdlib.h>
@@ -65,6 +67,10 @@
#define SOCKET_ERROR (-1)
#endif
+#ifdef HAVE_ARPA_INET_H
+ #include <arpa/inet.h>
+#endif
+
#define EXTCAP_BASE_OPTIONS_ENUM \
EXTCAP_OPT_LIST_INTERFACES, \
EXTCAP_OPT_VERSION, \