summaryrefslogtreecommitdiff
path: root/net-mgmt/aircrack-ng
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2011-09-29 18:48:46 +0000
committerLars Engels <lme@FreeBSD.org>2011-09-29 18:48:46 +0000
commitaf7cd7fef78f10d43d16a177b0e8e40e25a4a7e6 (patch)
treebeeac3517bd54a8ac4a13cb94ea3270ee6250c28 /net-mgmt/aircrack-ng
parentUpdate to version 1.105. (diff)
- Add a patch that allows packet injection with capable wireless chipsets in
AHDEMO mode - Bump PORTREVISION PR: ports/160564 Submitted by: Jakub Lach <jakub_lach@mailplus.pl>
Notes
Notes: svn path=/head/; revision=282623
Diffstat (limited to 'net-mgmt/aircrack-ng')
-rw-r--r--net-mgmt/aircrack-ng/Makefile1
-rw-r--r--net-mgmt/aircrack-ng/files/patch-src_osdep_freebsd.c19
2 files changed, 16 insertions, 4 deletions
diff --git a/net-mgmt/aircrack-ng/Makefile b/net-mgmt/aircrack-ng/Makefile
index 203613709d5c..e434e586c94e 100644
--- a/net-mgmt/aircrack-ng/Makefile
+++ b/net-mgmt/aircrack-ng/Makefile
@@ -7,6 +7,7 @@
PORTNAME= aircrack-ng
DISTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= net-mgmt security
MASTER_SITES= http://download.aircrack-ng.org/ \
http://bsd-geek.de/FreeBSD/distfiles/
diff --git a/net-mgmt/aircrack-ng/files/patch-src_osdep_freebsd.c b/net-mgmt/aircrack-ng/files/patch-src_osdep_freebsd.c
index c8be15f6e9a8..bd1640118a59 100644
--- a/net-mgmt/aircrack-ng/files/patch-src_osdep_freebsd.c
+++ b/net-mgmt/aircrack-ng/files/patch-src_osdep_freebsd.c
@@ -1,5 +1,5 @@
---- src/osdep/freebsd.c.orig 2008-06-10 02:55:09.000000000 +0700
-+++ src/osdep/freebsd.c 2008-08-11 20:01:53.000000000 +0700
+--- src/osdep/freebsd.c.orig 2008-02-26 19:12:19.000000000 +0100
++++ src/osdep/freebsd.c 2011-09-29 20:35:48.000000000 +0200
@@ -53,7 +53,9 @@
unsigned char pf_buf[4096];
unsigned char *pf_next;
@@ -47,15 +47,26 @@
}
static int fbsd_set_channel(struct wif *wi, int chan)
-@@ -542,6 +554,7 @@
+@@ -389,7 +401,7 @@
+
+ memset(&ifr, 0, sizeof(ifr));
+ strcpy(ifr.ifr_name, iface);
+- ifr.ifr_media = ifmr.ifm_current | IFM_IEEE80211_MONITOR;
++ ifr.ifr_media = ifmr.ifm_current;
+ if (ioctl(s, SIOCSIFMEDIA, &ifr) == -1)
+ goto close_sock;
+
+@@ -542,13 +554,17 @@
/* setup private state */
pf = wi_priv(wi);
pf->pf_fd = fd;
+#if __FreeBSD_version > 700018
pf->pf_txparams.ibp_vers = IEEE80211_BPF_VERSION;
pf->pf_txparams.ibp_len = sizeof(struct ieee80211_bpf_params) - 6;
++ pf->pf_txparams.ibp_rate0 = 2; /* 1 MB/s XXX */
++ pf->pf_txparams.ibp_try0 = 1; /* no retransmits */
pf->pf_txparams.ibp_rate1 = 2; /* 1 MB/s XXX */
-@@ -549,6 +562,7 @@
+ pf->pf_txparams.ibp_try1 = 1; /* no retransmits */
pf->pf_txparams.ibp_flags = IEEE80211_BPF_NOACK;
pf->pf_txparams.ibp_power = 100; /* nominal max */
pf->pf_txparams.ibp_pri = WME_AC_VO; /* high priority */