apparently you need libpcap 0.8 or higher to compile this.

for linux you'll need to apply the bugfix below to libpcap (it's been
accepted upstream and will appear some time after libpcap 0.8.3).

-dean

--- libpcap0.8-0.8.3/fad-getad.c.orig	2004-03-11 15:04:52.000000000 -0800
+++ libpcap0.8-0.8.3/fad-getad.c	2004-10-27 23:56:59.000000000 -0700
@@ -58,6 +58,10 @@
 #include "os-proto.h"
 #endif
 
+#ifdef AF_PACKET
+# include <linux/if_packet.h>
+#endif
+
 /*
  * This is fun.
  *
@@ -101,6 +105,11 @@
 		return (sizeof (struct sockaddr_in6));
 #endif
 
+#ifdef AF_PACKET
+	case AF_PACKET:
+		return (sizeof (struct sockaddr_ll));
+#endif
+
 	default:
 		return (sizeof (struct sockaddr));
 	}

