Skip to content

Commit

Permalink
fixup! tapsetup: add capability to add routes to bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Sep 2, 2020
1 parent 491e8fb commit b158fb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/tools/tapsetup/tapsetup
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ add_ipv6_routes() {
fi
case "${PLATFORM}" in
FreeBSD|OSX)
route -n add -interface ${BRNAME} -inet6 -prefixlen ${route_prefix_len} \
${route_prefix} ${next_hop} || exit 1
route -6n add ${route_prefix} -interface ${BRNAME} \
${next_hop} || exit 1
;;
Linux)
ip route add ${route_prefix}/${route_prefix_len} \
Expand Down Expand Up @@ -200,8 +200,8 @@ del_ipv6_routes() {
fi
case "${PLATFORM}" in
FreeBSD|OSX)
route delete -interface ${BRNAME} -inet6 -prefixlen ${route_prefix_len} \
${route_prefix} ${next_hop} || exit 1
route -6 delete ${route_prefix}/${route_prefix_len} \
-interface ${BRNAME} ${next_hop} || exit 1
;;
Linux)
ip route delete ${route_prefix}/${route_prefix_len} \
Expand Down

0 comments on commit b158fb0

Please sign in to comment.