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
c5eb2036
Commit
c5eb2036
authored
Jan 09, 2013
by
Simó Albert i Beltran
Browse files
Remove unneeded grep in qmp_get_ip6_fast function of qmp_functions.sh to optimize.
parent
3a1f25dd
Changes
1
Show whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmp_functions.sh
View file @
c5eb2036
...
...
@@ -286,7 +286,7 @@ qmp_get_ip6_fast() {
mask
=
"128"
fi
local
addr_long
=
$(
ipv6calc
-q
--in
ipv6
$addr
--showinfo
-m
2>&1 |
grep
IPV6
=
|
awk
-F
'='
'{print $2}'
)
local
addr_long
=
$(
ipv6calc
-q
--in
ipv6
$addr
--showinfo
-m
2>&1 |
awk
-F
'='
'
/IPV6=/
{print $2}'
)
local
fake_prefix16
=
"20a2"
# original input is manipulated because ipv6calc complains about reserved ipv6 addresses
local
addr_prefix16
=
"
$(
echo
$addr_long
|
awk
-F
':'
'{print $1}'
)
"
...
...
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