aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2011-09-30 02:48:46 +0800
committerlme <lme@FreeBSD.org>2011-09-30 02:48:46 +0800
commit88d6b06f0735596a71cb8661330ad1d3ad9c1314 (patch)
treed2ff78d309865aa523b1584ba03bd0a0cbf5a994 /net-mgmt
parent9609d2478580ac2b749f9d548c3528af1ec89092 (diff)
downloadfreebsd-ports-gnome-88d6b06f0735596a71cb8661330ad1d3ad9c1314.tar.gz
freebsd-ports-gnome-88d6b06f0735596a71cb8661330ad1d3ad9c1314.tar.zst
freebsd-ports-gnome-88d6b06f0735596a71cb8661330ad1d3ad9c1314.zip
- 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>
Diffstat (limited to 'net-mgmt')
-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 */