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
872d9526
Commit
872d9526
authored
Mar 06, 2012
by
p4u
Browse files
Fixed usage of field bmx6_ipv4_address (netmask configuration was missing)
parent
c79b4474
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmp_functions.sh
View file @
872d9526
...
...
@@ -586,7 +586,11 @@ qmp_configure_bmx6() {
uci
set
$conf
.mesh_
$counter
.dev
=
"
$ifname
"
if
qmp_uci_test qmp.networks.bmx6_ipv4_address
;
then
uci
set
$conf
.general.tun4Address
=
"
$(
uci get qmp.networks.bmx6_ipv4_address
)
"
local
bmx6_ipv4_netmask
=
"
$(
echo
$(
uci get qmp.networks.bmx6_ipv4_address
)
|
cut
-s
-d
/
-f2
)
"
local
bmx6_ipv4_address
=
"
$(
echo
$(
uci get qmp.networks.bmx6_ipv4_address
)
|
cut
-d
/
-f1
)
"
[
-z
"
$bmx6_ipv4_netmask
"
]
&&
bmx6_ipv4_netmask
=
"32"
uci
set
$conf
.general.tun4Address
=
"
$bmx6_ipv4_address
/
$bmx6_ipv4_netmask
"
elif
qmp_uci_test qmp.networks.bmx6_ipv4_prefix24
;
then
local
ipv4_suffix24
=
"
$((
0
x
$community_node_id
/
0
x100
))
.
$((
0
x
$community_node_id
%
0
x100
))
"
uci
set
$conf
.general.tun4Address
=
"
$(
uci get qmp.networks.bmx6_ipv4_prefix24
)
.
$ipv4_suffix24
/32"
...
...
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