summaryrefslogtreecommitdiff
path: root/etc/rc.d/rtadvd
diff options
context:
space:
mode:
authorBrad Davis <brd@FreeBSD.org>2018-07-28 20:36:23 +0000
committerBrad Davis <brd@FreeBSD.org>2018-07-28 20:36:23 +0000
commit1135e97b7c2c3b60fda9a6f2f4a24a8336b1024c (patch)
tree0e0dbb798c6f8b921cdb45e02fa5baa6a6fe05d7 /etc/rc.d/rtadvd
parentc59a544e09735f4c425b2cc5afb1b7154bd4f240 (diff)
downloadsrc-test2-1135e97b7c2c3b60fda9a6f2f4a24a8336b1024c.tar.gz
src-test2-1135e97b7c2c3b60fda9a6f2f4a24a8336b1024c.zip
Notes
Diffstat (limited to 'etc/rc.d/rtadvd')
-rwxr-xr-xetc/rc.d/rtadvd73
1 files changed, 0 insertions, 73 deletions
diff --git a/etc/rc.d/rtadvd b/etc/rc.d/rtadvd
deleted file mode 100755
index ed9e8b948348..000000000000
--- a/etc/rc.d/rtadvd
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: rtadvd
-# REQUIRE: DAEMON
-# BEFORE: LOGIN
-# KEYWORD: nojailvnet shutdown
-
-. /etc/rc.subr
-. /etc/network.subr
-
-name="rtadvd"
-desc="Router advertisement daemon"
-rcvar="rtadvd_enable"
-command="/usr/sbin/${name}"
-extra_commands="reload"
-reload_cmd="rtadvd_reload"
-start_precmd="rtadvd_precmd"
-
-rtadvd_precmd()
-{
- # This should be enabled with a great care.
- # You may want to fine-tune /etc/rtadvd.conf.
- #
- # And if you wish your rtadvd to receive and process
- # router renumbering messages, specify your Router Renumbering
- # security policy by -R option.
- #
- # See `man 3 ipsec_set_policy` for IPsec policy specification
- # details.
- # (CAUTION: This enables your routers prefix renumbering
- # from another machine, so if you enable this, do it with
- # enough care.)
- #
- # If specific interfaces haven't been specified,
- # get a list of interfaces and enable it on them
- #
- case ${rtadvd_interfaces} in
- [Aa][Uu][Tt][Oo]|'')
- command_args=
- for i in `list_net_interfaces`; do
- case $i in
- lo0) continue ;;
- esac
- if ipv6if $i; then
- command_args="${command_args} ${i}"
- fi
- done
- ;;
- [Nn][Oo][Nn][Ee])
- ;;
- *)
- command_args="${rtadvd_interfaces}"
- ;;
- esac
-
- # Enable Router Renumbering, unicast case
- # (use correct src/dst addr)
- # rtadvd -R "in ipsec ah/transport/fec0:0:0:1::1-fec0:0:0:10::1/require" ${ipv6_network_interfaces}
- # Enable Router Renumbering, multicast case
- # (use correct src addr)
- # rtadvd -R "in ipsec ah/transport/ff05::2-fec0:0:0:10::1/require" ${ipv6_network_interfaces}
- return 0
-}
-
-rtadvd_reload() {
- /usr/sbin/rtadvctl reload
-}
-
-load_rc_config $name
-run_rc_command "$1"