Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
da605cb9
Commit
da605cb9
authored
May 26, 2013
by
Simó Albert i Beltran
Browse files
Add support for new minBandwidth option for bmx6 tunOut. Closes #245.
parent
cb2d654c
Changes
3
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/config/qmp
View file @
da605cb9
...
...
@@ -106,6 +106,7 @@ config 'gateway'
option 'maxPrefixLen' '24'
option 'hysteresis' '20'
option 'bonus' '10'
option 'minBandwidth' '10000'
option 'exportDistance' '10'
config 'qmp' 'wireless'
...
...
packages/qmp-system/files/etc/qmp/qmp_functions.sh
View file @
da605cb9
...
...
@@ -860,6 +860,7 @@ qmp_add_qmp_bmx6_tunnels()
qmp_translate_configuration qmp
$section
maxPrefixLen
$config
$name
qmp_translate_configuration qmp
$section
hysteresis
$config
$name
qmp_translate_configuration qmp
$section
bonus
$config
$name
qmp_translate_configuration qmp
$section
minBandwidth
$config
$name
qmp_translate_configuration qmp
$section
exportDistance
$config
$name
fi
...
...
packages/qmp-system/files/etc/qmp/qmp_gw.sh
View file @
da605cb9
...
...
@@ -40,8 +40,8 @@ qmp_exists_gateway()
local
ignore
=
0
local
exists
args_key_values
=
"
$(
echo
$@
|
awk
-v
RS
=
' '
'NR % 2 == 1 && $0 !~ "^(ignore|
b
andwidth)$" {a+=1} END {print a}'
)
"
uci_key_values
=
$(
env
|
grep
-v
-e
"^CONFIG_
${
config
}
_
\(
TYPE
\|
ignore
\|
b
andwidth
\)
="
|
grep
-c
"^CONFIG_
${
config
}
_"
)
args_key_values
=
"
$(
echo
$@
|
awk
-v
RS
=
' '
'NR % 2 == 1 && $0 !~ "^(ignore|
(minB|b)
andwidth)$" {a+=1} END {print a}'
)
"
uci_key_values
=
$(
env
|
grep
-v
-e
"^CONFIG_
${
config
}
_
\(
TYPE
\|
ignore
\|
\(
minB
\|
b
\)
andwidth
\)
="
|
grep
-c
"^CONFIG_
${
config
}
_"
)
if
[
"
$args_key_values
"
!=
"
$uci_key_values
"
]
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment