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
This commit is contained in:
Pau Espin 2018-04-12 16:35:09 +02:00
parent c71c9516dd
commit 9f521e10db
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"