On Mon, May 22, 2006 at 01:21:01AM +0200, viq wrote:
[...]
> networks. So I started playing with kismet - that shows me even more
> networks. But after a moment kismet stops updating, and even the cable
> connection starts working. I tried bringing em0 and ipw0 down and up in
> various order, running dhclient on em0 - that results only messages
> like "can't find free bpf device" or "can't allocate memory" or "buffer
> memory exceeded" (all approximately quoted from memory).
I doubt it's really kismet, but could you try the patch attached
(basically an update to Kismet-2006-04)?
Please note that this update is still incomplete; I'm waiting for
some comments from upstream, and I'll probably add some patches
from other sources.
Ciao,
Kili
diff -x CVS -rNu ../kismet.orig/Makefile ./Makefile
--- ../kismet.orig/Makefile Sun Feb 26 20:59:04 2006
+++ ./Makefile Sat Apr 15 09:46:04 2006
@@ -8,9 +8,9 @@
# No wireless capabilities
NOT_FOR_ARCHS=m68k m88k vax
-V= 2005-08-R1
+V= 2006-04-R1
DISTNAME= kismet-${V}
-PKGNAME= kismet-${V:S,-,,g}p1
+PKGNAME= kismet-${V:S,-,,g}
PKGNAME-gpsmap= kismet-gpsmap-${V:S,-,,g}
CATEGORIES= net security
diff -x CVS -rNu ../kismet.orig/distinfo ./distinfo
--- ../kismet.orig/distinfo Tue Aug 16 22:35:58 2005
+++ ./distinfo Sat Apr 15 09:46:28 2006
@@ -1,4 +1,4 @@
-MD5 (kismet-2005-08-R1.tar.gz) = 17edb7688e04dd28028d5268a77d0ce7
-RMD160 (kismet-2005-08-R1.tar.gz) = 1ee1b376d70821e7a4ccc5197ca299c0ebd6f250
-SHA1 (kismet-2005-08-R1.tar.gz) = 802a019b4d2796b1a6fb58c812ff788a238bd79c
-SIZE (kismet-2005-08-R1.tar.gz) = 986388
+MD5 (kismet-2006-04-R1.tar.gz) = 8ec2de513f2911df1b7edfcba5ad1c26
+RMD160 (kismet-2006-04-R1.tar.gz) = b709256198820d5ac650ce40dea637716427a8b7
+SHA1 (kismet-2006-04-R1.tar.gz) = e48ce08e96328bfdac98152df6b5759c27ed9169
+SIZE (kismet-2006-04-R1.tar.gz) = 1005068
diff -x CVS -rNu ../kismet.orig/patches/patch-configure_in
./patches/patch-configure_in
--- ../kismet.orig/patches/patch-configure_in Sat Oct 8 22:56:41 2005
+++ ./patches/patch-configure_in Sat Apr 15 14:38:30 2006
@@ -1,5 +1,5 @@
---- configure.in.orig Tue Aug 16 03:22:51 2005
-+++ configure.in Sat Sep 10 12:52:13 2005
+--- configure.in.orig Wed Jan 4 16:53:37 2006
++++ configure.in Sat Apr 15 14:37:45 2006
@@ -127,7 +127,7 @@ else
esac
fi
@@ -9,7 +9,19 @@
AC_CONFIG_SRCDIR([kismet_server.cc])
AC_CONFIG_HEADER([config.h])
-@@ -752,7 +752,6 @@ if test "$wantgpsmap" = "yes"; then
+@@ -263,8 +263,9 @@ AC_CHECK_LIB([uClibc++], [main],
+ # Do we use uclibc++?
+ if test "$foundcxxl"x == "x"; then
+ AC_CHECK_LIB([stdc++], [main],
+- foundcxxl="stdc++" LIBS="$LIBS -lstdc++",
+- AC_MSG_WARN([libstdc++ not available on this
system]))
++ foundcxxl="stdc++" LIBS="$LIBS -lstdc++ -lm",
++ AC_MSG_WARN([libstdc++ not available on this
system]),
++ "-lm")
+ fi
+
+ if test "$foundcxxl"x == "x"; then
+@@ -768,7 +769,6 @@ if test "$wantgpsmap" = "yes"; then
save_cxxflags="$CXXFLAGS"
save_libs="$LIBS"
save_ldflags="$LDFLAGS"
@@ -17,7 +29,7 @@
AC_CHECK_PROG(magickconfig, [Magick-config --version], yes, no)
if test "$magickconfig" = "yes"; then
-@@ -774,8 +773,6 @@ if test "$wantgpsmap" = "yes"; then
+@@ -790,8 +790,6 @@ if test "$wantgpsmap" = "yes"; then
AC_MSG_WARN(*** Old version of ImageMagick ($magickversion)
found. Please upgrade to 5.4.7 or newer. gpsmap will not be built. ***)
elif test $magickconfig = "no"; then
AC_MSG_WARN(*** Missing Magick-config (or it is not in the
path). gpsmap will not be built. ***)
@@ -26,7 +38,7 @@
else
#CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`
-I`Magick-config --prefix`/include"
CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`"
-@@ -856,6 +853,11 @@ else
+@@ -872,6 +870,11 @@ else
gmpl="no"
gpslc=""
pthr="no"
diff -x CVS -rNu ../kismet.orig/patches/patch-expat_cc ./patches/patch-expat_cc
--- ../kismet.orig/patches/patch-expat_cc Thu Jan 1 01:00:00 1970
+++ ./patches/patch-expat_cc Sat Apr 15 14:59:47 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- expat.cc.orig Sat Apr 15 14:59:24 2006
++++ expat.cc Sat Apr 15 14:59:43 2006
+@@ -52,7 +52,7 @@ cdp_packet *building_cdp;
+ // Vector of networks
+ vector<wireless_network *> netvec;
+
+-char net_kisversion[32];
++char net_kisversion[33];
+ time_t net_run_start, net_run_end;
+
+ // Every fricking possible XML node.
diff -x CVS -rNu ../kismet.orig/patches/patch-pcapsource_cc
./patches/patch-pcapsource_cc
--- ../kismet.orig/patches/patch-pcapsource_cc Mon Jan 16 22:28:19 2006
+++ ./patches/patch-pcapsource_cc Sat Apr 15 14:30:05 2006
@@ -1,7 +1,7 @@
$OpenBSD: patch-pcapsource_cc,v 1.1 2006/01/16 21:28:19 sturm Exp $
---- pcapsource.cc.orig Tue Aug 16 03:22:51 2005
-+++ pcapsource.cc Fri Jan 13 23:26:52 2006
-@@ -2085,6 +2085,7 @@ int monitor_openbsd_prism2(const char *i
+--- pcapsource.cc.orig Sun Apr 2 17:13:00 2006
++++ pcapsource.cc Sat Apr 15 14:29:42 2006
+@@ -2446,6 +2446,7 @@ int monitor_openbsd_prism2(const char *i
close(s);
snprintf(in_err, 1024, "Power management ioctl failed: %s",
strerror(errno));
@@ -9,7 +9,7 @@
}
// Lower AP density, better radio threshold settings?
-@@ -2097,6 +2098,7 @@ int monitor_openbsd_prism2(const char *i
+@@ -2458,6 +2459,7 @@ int monitor_openbsd_prism2(const char *i
close(s);
snprintf(in_err, 1024, "AP Density ioctl failed: %s",
strerror(errno));
@@ -17,7 +17,7 @@
}
// Enable driver processing of 802.11b frames
-@@ -2122,6 +2124,7 @@ int monitor_openbsd_prism2(const char *i
+@@ -2483,6 +2485,7 @@ int monitor_openbsd_prism2(const char *i
close(s);
snprintf(in_err, 1024, "Roaming disable ioctl failed: %s",
strerror(errno));