faith (198190) | faith (220153) |
---|---|
1#!/bin/sh | 1#!/bin/sh |
2# $FreeBSD: head/etc/rc.d/faith 198190 2009-10-17 21:09:15Z dougb $ | 2# $FreeBSD: head/etc/rc.d/faith 220153 2011-03-30 01:19:00Z emaste $ |
3# 4 5# PROVIDE: faith 6# REQUIRE: netif 7# KEYWORD: nojail 8 9. /etc/rc.subr 10. /etc/network.subr --- 5 unchanged lines hidden (view full) --- 16faith_up() 17{ 18 case ${ipv6_faith_prefix} in 19 [Nn][Oo] | '') 20 ;; 21 *) 22 echo "Configuring IPv6-to-IPv4 TCP relay capturing interface:" \ 23 " faith0." | 3# 4 5# PROVIDE: faith 6# REQUIRE: netif 7# KEYWORD: nojail 8 9. /etc/rc.subr 10. /etc/network.subr --- 5 unchanged lines hidden (view full) --- 16faith_up() 17{ 18 case ${ipv6_faith_prefix} in 19 [Nn][Oo] | '') 20 ;; 21 *) 22 echo "Configuring IPv6-to-IPv4 TCP relay capturing interface:" \ 23 " faith0." |
24 ${SYSCTL_W} net.inet6.ip6.keepfaith=1 | 24 ${SYSCTL} net.inet6.ip6.keepfaith=1 |
25 ifconfig faith0 create >/dev/null 2>&1 26 ifconfig faith0 up 27 for prefix in ${ipv6_faith_prefix}; do 28 prefixlen=`expr "${prefix}" : ".*/\(.*\)"` 29 case ${prefixlen} in 30 '') 31 prefixlen=96 32 ;; --- 10 unchanged lines hidden (view full) --- 43 ;; 44 esac 45} 46 47faith_down() 48{ 49 echo "Removing IPv6-to-IPv4 TCP relay capturing interface: faith0." 50 ifconfig faith0 destroy | 25 ifconfig faith0 create >/dev/null 2>&1 26 ifconfig faith0 up 27 for prefix in ${ipv6_faith_prefix}; do 28 prefixlen=`expr "${prefix}" : ".*/\(.*\)"` 29 case ${prefixlen} in 30 '') 31 prefixlen=96 32 ;; --- 10 unchanged lines hidden (view full) --- 43 ;; 44 esac 45} 46 47faith_down() 48{ 49 echo "Removing IPv6-to-IPv4 TCP relay capturing interface: faith0." 50 ifconfig faith0 destroy |
51 ${SYSCTL_W} net.inet6.ip6.keepfaith=0 | 51 ${SYSCTL} net.inet6.ip6.keepfaith=0 |
52 53 case ${ipv6_faith_prefix} in 54 [Nn][Oo] | '') 55 ;; 56 *) 57 for prefix in ${ipv6_faith_prefix}; do 58 prefixlen=`expr "${prefix}" : ".*/\(.*\)"` 59 case ${prefixlen} in --- 16 unchanged lines hidden --- | 52 53 case ${ipv6_faith_prefix} in 54 [Nn][Oo] | '') 55 ;; 56 *) 57 for prefix in ${ipv6_faith_prefix}; do 58 prefixlen=`expr "${prefix}" : ".*/\(.*\)"` 59 case ${prefixlen} in --- 16 unchanged lines hidden --- |