]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2893] BPF header includes common header for ethernet constants.
authorMarcin Siodelski <marcin@isc.org>
Wed, 9 Jul 2014 14:36:11 +0000 (16:36 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 9 Jul 2014 14:36:11 +0000 (16:36 +0200)
The if_ether.h is portable across various BSD system flavors. The
ethernet.h is missing on some OSes.

src/lib/dhcp/pkt_filter_bpf.cc

index ea757a99dc73d70141924b5eb5ec2ced90853b41..11c7f1b661c350d1f2efa4cf99b1590a13c5f852 100644 (file)
@@ -21,7 +21,7 @@
 #include <exceptions/exceptions.h>
 #include <algorithm>
 #include <net/bpf.h>
-#include <net/ethernet.h>
+#include <netinet/if_ether.h>
 
 namespace {