summaryrefslogtreecommitdiff
path: root/data/libnet/bpf.diff
blob: 21bc25a4db58ff54547a2e25cb71d6885aa43840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -ru libnet/configure.in libnet+iPhone/configure.in
--- libnet/configure.in	2004-03-01 20:26:11.000000000 +0000
+++ libnet+iPhone/configure.in	2009-01-20 21:52:24.000000000 +0000
@@ -67,44 +67,8 @@
 dnl
 AC_MSG_CHECKING(link-layer packet interface type)
 
-if test -r /dev/bpf0 ; then
     AC_LIBOBJ([libnet_link_bpf])
     AC_MSG_RESULT(found bpf)
-elif test -r /usr/include/net/pfilt.h ; then
-    AC_LIBOBJ([libnet_link_pf])
-    AC_MSG_RESULT(found pf)
-elif test -r /dev/nit ; then
-    AC_LIBOBJ([libnet_link_snit])
-    AC_MSG_RESULT(found snit)
-elif test -r /usr/include/sys/net/nit.h ; then
-    AC_LIBOBJ([libnet_link_nit])
-    AC_MSG_RESULT(found nit)
-elif test -r /usr/include/net/raw.h ; then
-    AC_LIBOBJ([libnet_link_snoop])
-    AC_MSG_RESULT(found snoop)
-elif test -r /usr/include/sys/dlpi.h ; then
-    AC_LIBOBJ([libnet_link_dlpi])
-    AC_MSG_RESULT(found dlpi)
-    AC_DEFINE(HAVE_DLPI)
-elif test -r /usr/include/linux/socket.h ; then
-    AC_LIBOBJ([libnet_link_linux])
-    AC_MSG_RESULT(found linux primitives)
-    AC_LIBNET_CHECK_PF_PACKET
-    AC_LIBNET_LINUX_PROCFS
-elif test -c /dev/bpf0 ; then           # check again in case not readable
-    AC_LIBOBJ([libnet_link_bpf])
-    AC_MSG_RESULT(found bpf)
-elif test -c /dev/nit ; then            # check again in case not readable
-    AC_LIBOBJ([libnet_link_snit])
-    AC_MSG_RESULT(found snit)
-elif test "$target_os" = "cygwin" ; then
-     AC_LIBOBJ([libnet_link_win32])
-     AC_MSG_RESULT(found win32 wpcap)
-else
-    AC_LIBOBJ([libnet_link_none])
-    AC_MSG_WARN(could not find a link-layer packet interface)
-    AC_MSG_WARN(link-layer packet injection will not be available)
-fi
 
 dnl
 dnl Inform user about the packet builders we've got