Fine tuning for OpenBSD and GNU/kfreebsd.
[darkstat] / decode.c
index e20b0b3..c3bb176 100644 (file)
--- a/decode.c
+++ b/decode.c
 #define ETHERTYPE_PPPOE 0x8864
 #endif
 
+#ifndef ETHERTYPE_IPV6
+# include <net/if_ether.h>     /* ETH_P_IPV6 for GNU/kfreebsd */
+# define ETHERTYPE_IPV6 ETH_P_IPV6
+#endif
+
 #include <net/if.h> /* struct ifreq */
 #include <netinet/in_systm.h> /* n_long */
 #include <netinet/ip.h> /* struct ip */