18 case ${ipv6_faith_prefix} in
22 echo "Configuring IPv6-to-IPv4 TCP relay capturing interface:" \
24 ${SYSCTL_W} net.inet6.ip6.keepfaith=1
25 ifconfig faith0 create >/dev/null 2>&1
27 for prefix in ${ipv6_faith_prefix}; do
28 prefixlen=`expr "${prefix}" : ".*/\(.*\)"`
34 prefix=`expr "${prefix}" : \
35 "\(.*\)/${prefixlen}"`
38 route add -inet6 ${prefix} -prefixlen ${prefixlen} ::1
39 route change -inet6 ${prefix} -prefixlen ${prefixlen} \
42 check_startmsgs && ifconfig faith0
49 echo "Removing IPv6-to-IPv4 TCP relay capturing interface: faith0."
50 ifconfig faith0 destroy
51 ${SYSCTL_W} net.inet6.ip6.keepfaith=0
53 case ${ipv6_faith_prefix} in
57 for prefix in ${ipv6_faith_prefix}; do
58 prefixlen=`expr "${prefix}" : ".*/\(.*\)"`
64 prefix=`expr "${prefix}" : \
65 "\(.*\)/${prefixlen}"`
68 route delete -inet6 ${prefix} -prefixlen ${prefixlen}