aboutsummaryrefslogtreecommitdiffstats
path: root/tests/osmo-pcap-test
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-12 16:35:09 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-04-12 16:35:12 +0200
commit9f521e10db64babb50057c3ede623bfbd2a51e95 (patch)
tree4d28debd38b4d8617ce1bd6b76a196d07b451879 /tests/osmo-pcap-test
parentc71c9516ddff9d5e724401b97e8f134f3b5f1867 (diff)
tests: osmo-pcap-test: Fix pcap includes not found in old versions
pcap/dlt.h only exists on newer versions of libpcap. On older versions, same defines are available in pcap/bpf.h, which in newer versions include pcap/dlt.h, so we are always fine include pcap/bpf.h. As a side note, there's a lots of comments in pcap/dlt.h stating that those symbols used to reside in pcap/bpf.h but were moved there at some point. Change-Id: I824671a415eb3f35f480c934b9780ff13510011a
Diffstat (limited to 'tests/osmo-pcap-test')
-rw-r--r--tests/osmo-pcap-test/l2_eth.c2
-rw-r--r--tests/osmo-pcap-test/l2_sll.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/osmo-pcap-test/l2_eth.c b/tests/osmo-pcap-test/l2_eth.c
index 3171fd7..34f003a 100644
--- a/tests/osmo-pcap-test/l2_eth.c
+++ b/tests/osmo-pcap-test/l2_eth.c
@@ -12,7 +12,7 @@
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <linux/if_ether.h>
-#include <pcap/dlt.h>
+#include <pcap/bpf.h>
#include "proto.h"
diff --git a/tests/osmo-pcap-test/l2_sll.c b/tests/osmo-pcap-test/l2_sll.c
index 5a600ff..0f44e61 100644
--- a/tests/osmo-pcap-test/l2_sll.c
+++ b/tests/osmo-pcap-test/l2_sll.c
@@ -12,7 +12,7 @@
#include <arpa/inet.h>
#include <linux/if_ether.h>
#include <pcap/sll.h>
-#include <pcap/dlt.h>
+#include <pcap/bpf.h>
#include "proto.h"