projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix regression with IPv6 source-dest-routes
[project/netifd.git]
/
scripts
/
netifd-proto.sh
diff --git
a/scripts/netifd-proto.sh
b/scripts/netifd-proto.sh
index
2a62bda
..
999bd68
100644
(file)
--- a/
scripts/netifd-proto.sh
+++ b/
scripts/netifd-proto.sh
@@
-122,7
+122,7
@@
proto_add_ipv4_route() {
local gw="$3"
local source="$4"
local gw="$3"
local source="$4"
- append PROTO_ROUTE "$target/$mask/$gw///
$source/
"
+ append PROTO_ROUTE "$target/$mask/$gw///
/$source
"
}
proto_add_ipv6_route() {
}
proto_add_ipv6_route() {
@@
-134,7
+134,7
@@
proto_add_ipv6_route() {
local source="$6"
local table="$7"
local source="$6"
local table="$7"
- append PROTO_ROUTE6 "$target/$mask/$gw/$metric/$valid/$
source/$tabl
e"
+ append PROTO_ROUTE6 "$target/$mask/$gw/$metric/$valid/$
table/$sourc
e"
}
proto_add_ipv6_prefix() {
}
proto_add_ipv6_prefix() {
@@
-212,9
+212,9
@@
_proto_push_route() {
str="${str#*/}"
local valid="${str%%/*}"
str="${str#*/}"
str="${str#*/}"
local valid="${str%%/*}"
str="${str#*/}"
- local
sourc
e="${str%%/*}"
+ local
tabl
e="${str%%/*}"
str="${str#*/}"
str="${str#*/}"
- local
tabl
e="${str}"
+ local
sourc
e="${str}"
json_add_object ""
json_add_string target "$target"
json_add_object ""
json_add_string target "$target"