Page MenuHomeFreeBSD

D57470.id179278.diff
No OneTemporary

D57470.id179278.diff

diff --git a/libexec/rc/rc.d/routing b/libexec/rc/rc.d/routing
--- a/libexec/rc/rc.d/routing
+++ b/libexec/rc/rc.d/routing
@@ -189,7 +189,9 @@
fi
if [ $_skip = 0 ]; then
route_args=`get_if_var ${i%:*} route_IF`
- if [ -n "$route_args" ]; then
+ if [ -n "$route_args" ] && [ $i = "_loopback" ]; then
+ ${ROUTE_CMD} -q ${_action} ${route_args} 2>/dev/null
+ elif [ -n "$route_args" ]; then
${ROUTE_CMD} ${_action} ${route_args}
else
warn "route_${i%:*} not found."
@@ -266,7 +268,10 @@
fi
if [ $_skip = 0 ]; then
ipv6_route_args=`get_if_var ${i%:*} ipv6_route_IF`
- if [ -n "$ipv6_route_args" ]; then
+ if [ -n "$ipv6_route_args" ] && [ $i = "_loopback" ]; then
+ ${ROUTE_CMD} -q ${_action} \
+ -inet6 ${ipv6_route_args} 2>/dev/null
+ elif [ -n "$ipv6_route_args" ]; then
${ROUTE_CMD} ${_action} \
-inet6 ${ipv6_route_args}
else

File Metadata

Mime Type
text/plain
Expires
Mon, Jun 22, 6:15 AM (9 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33781172
Default Alt Text
D57470.id179278.diff (920 B)

Event Timeline