Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
decollector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
decollector
Commits
c4f0cfe1
Commit
c4f0cfe1
authored
3 months ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
read controller's config on SIGHUP
parent
dd04111e
No related branches found
No related tags found
No related merge requests found
Pipeline
#204258
passed
3 months ago
Stage: static_code_analysis
Stage: compile_test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/decollector.c
+23
-1
23 additions, 1 deletion
src/decollector.c
with
23 additions
and
1 deletion
src/decollector.c
+
23
−
1
View file @
c4f0cfe1
...
...
@@ -30,7 +30,14 @@
#include
"wifi_dataelements.h"
#include
"decollector.h"
#include
"debug.h"
#include
"config.h"
static
int
signal_pending
;
static
void
decollector_sighandler
(
int
sig
)
{
signal_pending
=
sig
;
}
static
int
check_ageout_wifi_assoc_events
(
void
*
priv
,
void
*
ent
,
uint32_t
age
)
{
...
...
@@ -73,6 +80,18 @@ void hb_timer_cb(atimer_t *t)
p
->
ticks
++
;
if
(
signal_pending
)
{
int
ret
;
if
(
signal_pending
==
SIGHUP
)
{
ret
=
collector_get_network_params
(
p
,
&
dm
->
network
);
if
(
ret
)
err
(
"%s: Error get network ssids!
\n
"
,
__func__
);
}
signal_pending
=
0
;
}
/* limit per-device events by number and/or duration */
list_for_each_entry
(
dev
,
&
dm
->
network
.
devicelist
,
list
)
{
if
(
dev
->
ev
.
num_assoc
>
p
->
event_maxnum
)
{
...
...
@@ -106,7 +125,7 @@ void hb_timer_cb(atimer_t *t)
}
}
timer_set
(
t
,
2
*
1000
);
timer_set
(
t
,
1
*
1000
);
}
void
collection_timer_cb
(
atimer_t
*
t
)
...
...
@@ -168,6 +187,9 @@ int decollector_init(void **priv, const struct decollector_useropts *opts)
struct
decollector_private
*
p
;
int
ret
;
set_sighandler
(
SIGHUP
,
decollector_sighandler
);
set_sighandler
(
SIGPIPE
,
SIG_IGN
);
*
priv
=
NULL
;
p
=
calloc
(
1
,
sizeof
(
struct
decollector_private
));
if
(
!
p
)
...
...
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