Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
darkbit
ffbs-gluon
Commits
b099b3ce
Unverified
Commit
b099b3ce
authored
4 years ago
by
David Bauer
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2068 from freifunk-gluon/radv-filterd
gluon-radv-filterd: minor cleanup
parents
9be7a5ca
e32fa5bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-radv-filterd/src/gluon-radv-filterd.c
+5
-6
5 additions, 6 deletions
package/gluon-radv-filterd/src/gluon-radv-filterd.c
package/gluon-radv-filterd/src/mac.h
+3
-0
3 additions, 0 deletions
package/gluon-radv-filterd/src/mac.h
with
8 additions
and
6 deletions
package/gluon-radv-filterd/src/gluon-radv-filterd.c
+
5
−
6
View file @
b099b3ce
...
...
@@ -559,14 +559,13 @@ static int parse_tt_local(struct nl_msg *msg,
}
static
void
update_tqs
(
void
)
{
static
const
struct
ether_addr
unspec
=
{};
struct
router
*
router
;
bool
update_originators
=
false
;
struct
ether_addr
unspec
;
struct
batadv_nlquery_opts
opts
;
int
ret
;
// reset TQs
memset
(
&
unspec
,
0
,
sizeof
(
unspec
));
foreach
(
router
,
G
.
routers
)
{
router
->
tq
=
0
;
if
(
ether_addr_equal
(
router
->
originator
,
unspec
))
...
...
@@ -609,12 +608,12 @@ static void update_tqs(void) {
foreach
(
router
,
G
.
routers
)
{
if
(
router
->
tq
==
0
)
{
if
(
ether_addr_equal
(
router
->
originator
,
unspec
))
fprintf
(
stderr
,
"Unable to find router "
F_MAC
" in transtable_{global,local}
\n
"
,
DEBUG_MSG
(
"Unable to find router "
F_MAC
" in transtable_{global,local}"
,
F_MAC_VAR
(
router
->
src
));
else
fprintf
(
stderr
,
"Unable to find TQ for originator "
F_MAC
" (router "
F_MAC
")
\n
"
,
DEBUG_MSG
(
"Unable to find TQ for originator "
F_MAC
" (router "
F_MAC
")"
,
F_MAC_VAR
(
router
->
originator
),
F_MAC_VAR
(
router
->
src
));
}
...
...
This diff is collapsed.
Click to expand it.
package/gluon-radv-filterd/src/mac.h
+
3
−
0
View file @
b099b3ce
#pragma once
#include
<stdint.h>
#include
<string.h>
#include
<linux/if_ether.h>
#define F_MAC "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"
...
...
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