Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
F
FreeBSD ports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
FreeBSD
FreeBSD ports
Commits
0eaddcad
Commit
0eaddcad
authored
3 years ago
by
Alexey Dokuchaev
Browse files
Options
Downloads
Patches
Plain Diff
net-mgmt/aircrack-ng: unbreak the build on recent -CURRENT.
Reported by: pkg-fallout
parent
89f13837
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
net-mgmt/aircrack-ng/files/patch-src_aircrack-ng.c
+49
-0
49 additions, 0 deletions
net-mgmt/aircrack-ng/files/patch-src_aircrack-ng.c
with
49 additions
and
0 deletions
net-mgmt/aircrack-ng/files/patch-src_aircrack-ng.c
0 → 100644
+
49
−
0
View file @
0eaddcad
---
src
/
aircrack
-
ng
.
c
.
orig
2018
-
12
-
09
22
:
53
:
44
UTC
+++
src
/
aircrack
-
ng
.
c
@@
-
149
,
7
+
149
,
7
@@
struct
WPA_data
wpa_data
[
MAX_THREADS
];
int
wpa_wordlists_done
=
0
;
static
pthread_mutex_t
mx_nb
=
PTHREAD_MUTEX_INITIALIZER
;
static
pthread_mutex_t
mx_wpastats
=
PTHREAD_MUTEX_INITIALIZER
;
-
ac_cpuset_t
*
cpuset
=
NULL
;
+
static
ac_cpuset_t
*
acng_cpuset
=
NULL
;
#define GOT_IV 0x00000001
#define USE_IV 0x00000002
@@
-
690
,
10
+
690
,
10
@@
static
void
clean_exit
(
int
ret
)
dso_ac_crypto_engine_destroy
(
&
engine
);
ac_crypto_engine_loader_unload
();
-
if
(
cpuset
!=
NULL
)
+
if
(
acng_cpuset
!=
NULL
)
{
-
ac_cpuset_destroy
(
cpuset
);
-
ac_cpuset_free
(
cpuset
);
+
ac_cpuset_destroy
(
acng_cpuset
);
+
ac_cpuset_free
(
acng_cpuset
);
}
if
(
opt
.
totaldicts
)
@@
-
5371
,
10
+
5371
,
10
@@
static
int
perform_wpa_crack
(
struct
AP_info
*
ap_cur
)
return
missing_wordlist_dictionary
(
ap_cur
);
}
-
cpuset
=
ac_cpuset_new
();
-
ALLEGE
(
cpuset
);
-
ac_cpuset_init
(
cpuset
);
-
ac_cpuset_distribute
(
cpuset
,
(
size_t
)
opt
.
nbcpu
);
+
acng_cpuset
=
ac_cpuset_new
();
+
ALLEGE
(
acng_cpuset
);
+
ac_cpuset_init
(
acng_cpuset
);
+
ac_cpuset_distribute
(
acng_cpuset
,
(
size_t
)
opt
.
nbcpu
);
ap_cur
=
get_first_target
();
@@
-
5462
,
7
+
5462
,
7
@@
static
int
perform_wpa_crack
(
struct
AP_info
*
ap_cur
)
return
(
FAILURE
);
}
-
ac_cpuset_bind_thread_at
(
cpuset
,
tid
[
id
],
(
size_t
)
i
);
+
ac_cpuset_bind_thread_at
(
acng_cpuset
,
tid
[
id
],
(
size_t
)
i
);
id
++
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment