projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for IPv6 and interface target-routes & dependencies
[project/netifd.git]
/
dummy
/
netifd-proto.sh
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index
ae5a346
..
d8b540d
100755
(executable)
--- a/
dummy/netifd-proto.sh
+++ b/
dummy/netifd-proto.sh
@@
-334,6
+334,7
@@
proto_set_available() {
proto_add_host_dependency() {
local interface="$1"
local host="$2"
proto_add_host_dependency() {
local interface="$1"
local host="$2"
+ local ifname="$3"
# execute in subshell to not taint callers env
# see tickets #11046, #11545, #11570
# execute in subshell to not taint callers env
# see tickets #11046, #11545, #11570
@@
-341,6
+342,7
@@
proto_add_host_dependency() {
json_init
json_add_int action 6
json_add_string host "$host"
json_init
json_add_int action 6
json_add_string host "$host"
+ [ -n "$ifname" ] && json_add_string ifname "$ifname"
_proto_notify "$interface" -S
)
}
_proto_notify "$interface" -S
)
}