Browse Source

[2893] BPF header includes common header for ethernet constants.

The if_ether.h is portable across various BSD system flavors. The
ethernet.h is missing on some OSes.
Marcin Siodelski 11 years ago
parent
commit
7ff23f2b55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcp/pkt_filter_bpf.cc

+ 1 - 1
src/lib/dhcp/pkt_filter_bpf.cc

@@ -21,7 +21,7 @@
 #include <exceptions/exceptions.h>
 #include <algorithm>
 #include <net/bpf.h>
-#include <net/ethernet.h>
+#include <netinet/if_ether.h>
 
 namespace {