fff-babeld: use functions for setting initial rules and filters #83
No reviewers
Labels
No Label
RFC
RFT
WIP
blocked
bsp
bug
build/scripts/tools
duplicate
feature
fixed
layer3
mantis
more details required
needs changes
node
packages/fff
rejected
security
trivial
upstream
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: freifunk-franken/firmware#83
Loading…
Reference in New Issue
No description provided.
Delete Branch "adschm/firmware:babeluci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current initial setup for fff-babeld is quite static, hard
to adjust and full of redundancy. Make it more flexible and improve
general readability by using functions.
These may be reused by other routines or scripts later.
This also drops the static file /etc/config/babeld that was replacing
an existing babeld config file, and moves the code to the already
existing uci-defaults script. With this step, it will be easier to
add conditionals to the uci-defaults script when the original file
should not be overwritten later.
@ -1,0 +27,4 @@
local table="$3"
local prio="$4"
uci add network rule
These add commands all need >/dev/null
@ -1,0 +13,4 @@
babel_add_local_ipfilter() {
[ "$#" -ne "1" ] && return 1
babel_add_filter "$1" || return 1
Hi,
hier soll sicherlich die Funktion von oben gerufen werden.
Was mir eigentlich aufgefallen ist, dass die local-rules die hier angelegt werden hinter der "local deny" aus dem uci-defaults landen und somit unwirksam sind.
Ja, beides richtig, muss ich hier korrigieren, danke für den Hinweis.
04ef6d02fb
toc982b81fe8
Updated.
Pull request closed