svn commit: r451625 - head/net/u6rd/files
Hajimu UMEMOTO
ume at FreeBSD.org
Mon Oct 9 17:20:02 UTC 2017
Author: ume
Date: Mon Oct 9 17:20:00 2017
New Revision: 451625
URL: https://svnweb.freebsd.org/changeset/ports/451625
Log:
improve fib handling.
Modified:
head/net/u6rd/files/u6rd.in
Modified: head/net/u6rd/files/u6rd.in
==============================================================================
--- head/net/u6rd/files/u6rd.in Mon Oct 9 17:03:00 2017 (r451624)
+++ head/net/u6rd/files/u6rd.in Mon Oct 9 17:20:00 2017 (r451625)
@@ -52,7 +52,7 @@ plen_equal()
start_precmd()
{
- ifconfig ${u6rd_interface} create ${iface_fib}
+ ifconfig ${u6rd_interface} create
ifconfig ${u6rd_interface} inet6 -ifdisabled >/dev/null 2>&1
if [ -n "${u6rd_interface_flags}" ]; then
ifconfig ${u6rd_interface} ${u6rd_interface_flags}
@@ -60,6 +60,9 @@ start_precmd()
if [ -n "${u6rd_my_v6_addr}" ]; then
ifconfig ${u6rd_interface} inet6 ${u6rd_my_v6_addr}
fi
+ if [ -n "${u6rd_fib}" ]; then
+ ifconfig ${u6rd_interface} fib ${u6rd_fib}
+ fi
ifconfig ${u6rd_interface} up
if ! plen_equal ${u6rd_prefix} ${u6rd_my_v6_addr}; then
route delete -inet6 ${u6rd_prefix} ${route_fib} >/dev/null 2>&1
@@ -85,8 +88,6 @@ stop_postcmd()
load_rc_config ${name}
command_args="-u ${u6rd_username} ${u6rd_interface} ${u6rd_prefix} ${u6rd_relay_v4_addr} ${u6rd_my_v4_addr}"
if [ -n "${u6rd_fib}" ]; then
- iface_fib="fib ${u6rd_fib}"
route_fib="-fib ${u6rd_fib}"
- u6rd_fib=
fi
run_rc_command "$1"
More information about the svn-ports-head
mailing list