Instead of trying to get it through <net/if_ether.h>.
Remove the autoconf check for this header.
pidfile.h now.h
daylog.o: daylog.c err.h cdefs.h daylog.h graph_db.h str.h now.h
db.o: db.c cdefs.h err.h hosts_db.h addr.h graph_db.h db.h
-decode.o: decode.c cdefs.h acct.h cap.h config.h decode.h addr.h err.h \
- opt.h
+decode.o: decode.c cdefs.h acct.h cap.h decode.h addr.h err.h opt.h
dns.o: dns.c cdefs.h conv.h decode.h addr.h dns.h err.h hosts_db.h \
queue.h str.h tree.h bsd.h config.h
err.o: err.c cdefs.h err.h opt.h pidfile.h bsd.h config.h
# Solaris need sys/filio.h for FIONBIO
AC_CHECK_HEADERS(sys/filio.h)
-# Debian GNU/kFreeBSD needs net/if_ether.h for ETH_P_IPV6
-AC_CHECK_HEADERS(net/if_ether.h)
-
# This is the modern way. Older systems use the ioctl method.
AC_CHECK_HEADERS(ifaddrs.h)
#include "cdefs.h"
#include "acct.h"
#include "cap.h"
-#include "config.h"
#include "decode.h"
#include "err.h"
#include "opt.h"
# endif
# endif
#endif
+
#ifndef ETHERTYPE_PPPOE
-#define ETHERTYPE_PPPOE 0x8864
+# define ETHERTYPE_PPPOE 0x8864
#endif
-
#ifndef ETHERTYPE_IPV6
-# ifdef HAVE_NET_IF_ETHER_H
-# include <net/if_ether.h> /* ETH_P_IPV6 for GNU/kfreebsd */
-# endif
-# ifdef ETH_P_IPV6
-# define ETHERTYPE_IPV6 ETH_P_IPV6
-# endif
+# define ETHERTYPE_IPV6 0x86DD
#endif
#include <netinet/in_systm.h> /* n_long */