On Sun, Feb 18, 2007 at 03:41:45PM +0100, Giovanni Bechis wrote:
> On Sun, Feb 18, 2007 at 11:30:43AM +0000, Mikolaj Kucharski wrote:
> > I read netbsd thread and they give a solution to create more bpf(4)
> > devices. So I created 10 more and started nmap again with bpf0-19 in
> > /dev directory, but still have same error. Can someone check this simple
> > nmap usage on Ethernet and wireless device? I'm able to check it only on
> > ral right now.
> > 
> For me with ethernet works well, you could try to apply this patch
> to libdnet.
[...]

Hi,

I found my problem with nmap/libdnet and I have a request for importing
below patches for libdnet and libnet-1.0 as they resolve my problem when I
build them under chroot and /dev is a stub. There should be no change
in package so no PKGNAME bump.

-- 
best regards
q#
diff -ruN -x CVS net/libdnet/distinfo mystuff/net/libdnet/distinfo
--- net/libdnet/distinfo        Thu Feb 22 16:03:00 2007
+++ mystuff/net/libdnet/distinfo        Fri Feb 23 20:18:01 2007
@@ -1,4 +1,5 @@
 MD5 (libdnet-1.10.tar.gz) = 416b765e9d9961501ac85e9a366fd219
 RMD160 (libdnet-1.10.tar.gz) = 167cf841b3fdd061ec8d6a56d53c341678ee5a9e
 SHA1 (libdnet-1.10.tar.gz) = 1dd9594adb5a3af121960abd6960bcedfc815f37
+SHA256 (libdnet-1.10.tar.gz) = 
c6e2329df7556cc5004113b65d2d68740e87bbd15c5b2ef6c3fb7cde191cfe67
 SIZE (libdnet-1.10.tar.gz) = 419752
diff -ruN -x CVS net/libdnet/patches/patch-aclocal_m4 
mystuff/net/libdnet/patches/patch-aclocal_m4
--- net/libdnet/patches/patch-aclocal_m4        Wed Dec 31 17:00:00 1969
+++ mystuff/net/libdnet/patches/patch-aclocal_m4        Fri Feb 23 20:17:32 2007
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- aclocal.m4.orig    Fri Feb 25 16:01:02 2005
++++ aclocal.m4 Fri Feb 23 20:17:18 2007
+@@ -6196,7 +6196,7 @@ dnl
+ AC_DEFUN(AC_DNET_BSD_BPF,
+     [AC_MSG_CHECKING(for Berkeley Packet Filter)
+     AC_CACHE_VAL(ac_cv_dnet_bsd_bpf,
+-      if test -c /dev/bpf0 ; then
++      if test -c /dev/bpf0 -o -r /usr/include/net/bpf.h ; then
+           ac_cv_dnet_bsd_bpf=yes
+       else
+           ac_cv_dnet_bsd_bpf=no
diff -ruN -x CVS net/libdnet/patches/patch-config_acinclude_m4 
mystuff/net/libdnet/patches/patch-config_acinclude_m4
--- net/libdnet/patches/patch-config_acinclude_m4       Wed Dec 31 17:00:00 1969
+++ mystuff/net/libdnet/patches/patch-config_acinclude_m4       Fri Feb 23 
20:17:29 2007
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- config/acinclude.m4.orig   Fri Feb 25 16:09:06 2005
++++ config/acinclude.m4        Fri Feb 23 20:17:18 2007
+@@ -98,7 +98,7 @@ dnl
+ AC_DEFUN(AC_DNET_BSD_BPF,
+     [AC_MSG_CHECKING(for Berkeley Packet Filter)
+     AC_CACHE_VAL(ac_cv_dnet_bsd_bpf,
+-      if test -c /dev/bpf0 ; then
++      if test -c /dev/bpf0 -o -r /usr/include/net/bpf.h ; then
+           ac_cv_dnet_bsd_bpf=yes
+       else
+           ac_cv_dnet_bsd_bpf=no
diff -ruN -x CVS net/libdnet/patches/patch-configure 
mystuff/net/libdnet/patches/patch-configure
--- net/libdnet/patches/patch-configure Wed Dec 31 17:00:00 1969
+++ mystuff/net/libdnet/patches/patch-configure Fri Feb 23 20:17:34 2007
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- configure.orig     Fri Feb 25 16:01:09 2005
++++ configure  Fri Feb 23 20:17:18 2007
+@@ -19049,7 +19049,7 @@ echo $ECHO_N "checking for Berkeley Pack
+     if test "${ac_cv_dnet_bsd_bpf+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+-  if test -c /dev/bpf0 ; then
++  if test -c /dev/bpf0 -o -r /usr/include/net/bpf.h ; then
+           ac_cv_dnet_bsd_bpf=yes
+       else
+           ac_cv_dnet_bsd_bpf=no
+@@ -19324,7 +19324,7 @@ elif test "$ac_cv_header_net_if_tun_h" =
+       else
+               LIBOBJS="$LIBOBJS tun-bsd.$ac_objext"
+       fi
+-elif test -f "/dev/tun0" ; then
++elif test -f "/dev/tun0" -o -r /usr/include/net/if_tun.h ; then
+       LIBOBJS="$LIBOBJS tun-bsd.$ac_objext"
+ else
+       LIBOBJS="$LIBOBJS tun-none.$ac_objext"
diff -ruN -x CVS net/libdnet/patches/patch-configure_in 
mystuff/net/libdnet/patches/patch-configure_in
--- net/libdnet/patches/patch-configure_in      Wed Dec 31 17:00:00 1969
+++ mystuff/net/libdnet/patches/patch-configure_in      Fri Feb 23 20:17:37 2007
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.in.orig  Fri Feb 25 16:05:09 2005
++++ configure.in       Fri Feb 23 20:17:18 2007
+@@ -303,7 +303,7 @@ elif test "$ac_cv_header_net_if_tun_h" =
+       else
+               AC_LIBOBJ([tun-bsd])
+       fi
+-elif test -f "/dev/tun0" ; then
++elif test -f "/dev/tun0" -o -r /usr/include/net/if_tun.h ; then
+       AC_LIBOBJ([tun-bsd])
+ else
+       AC_LIBOBJ([tun-none])
diff -ruN -x CVS net/libnet/1.0/distinfo mystuff/net/libnet/1.0/distinfo
--- net/libnet/1.0/distinfo     Fri Feb 23 21:57:08 2007
+++ mystuff/net/libnet/1.0/distinfo     Fri Feb 23 21:57:47 2007
@@ -1,4 +1,5 @@
 MD5 (libnet-1.0.2a.tar.gz) = ddf53f0f484184390e8c2a1bd0853667
 RMD160 (libnet-1.0.2a.tar.gz) = 43dd2edc31e56b42792727b88d81342dc26d3308
 SHA1 (libnet-1.0.2a.tar.gz) = 804eaf43bb90f93e505d46a9668c914a112bf136
+SHA256 (libnet-1.0.2a.tar.gz) = 
7c7f2e8ccb47bb47072c5cd583fea5e90ab892c75889b625346b60d10464459a
 SIZE (libnet-1.0.2a.tar.gz) = 140191
diff -ruN -x CVS net/libnet/1.0/patches/patch-configure.in 
mystuff/net/libnet/1.0/patches/patch-configure.in
--- net/libnet/1.0/patches/patch-configure.in   Tue Feb 20 08:06:13 2007
+++ mystuff/net/libnet/1.0/patches/patch-configure.in   Fri Feb 23 20:33:45 2007
diff -ruN -x CVS net/libnet/1.0/patches/patch-configure.in 
mystuff/net/libnet/1.0/patches/patch-configure.in
@@ -1,5 +1,5 @@
---- configure.in.orig  Wed Jan 17 15:59:30 2001
-+++ configure.in       Wed Sep 22 16:09:21 2004
+--- configure.in.orig  Wed Jan 17 13:59:30 2001
++++ configure.in       Fri Feb 23 20:33:20 2007
 @@ -33,6 +33,9 @@ AC_PREFIX_DEFAULT(/usr)
  
  if test "$prefix" = "NONE"; then
@@ -27,3 +27,12 @@
  
  dnl
  dnl Check for package inclusion/exclusion
+@@ -89,7 +92,7 @@ dnl Get lowlevel packet writing interfac
+ dnl
+ AC_MSG_CHECKING(low-level packet interface type)
+ 
+-if test -r /dev/bpf0 ; then
++if test -r /dev/bpf0 -o -r /usr/include/net/bpf.h ; then
+     LL_INT_TYPE=bpf
+     AC_MSG_RESULT(found bpf)
+ elif test -r /usr/include/net/pfilt.h ; then

Reply via email to