diff options
author | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-15 13:08:19 +0000 |
---|---|---|
committer | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-15 13:08:19 +0000 |
commit | 6a962ce10a37a675477f7c918d5c2e98ec7db42b (patch) | |
tree | c09f577bbdef6a6c785df6d96aac3b84d0619128 /package/network/ipv6/ipv6-support/files/dhcpv6.sh | |
parent | b81f0c9e0f3f557ccc7717af4c091dedd18d61da (diff) |
ipv6-support: Switch to native IPv6 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35174 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/ipv6-support/files/dhcpv6.sh')
-rwxr-xr-x | package/network/ipv6/ipv6-support/files/dhcpv6.sh | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/package/network/ipv6/ipv6-support/files/dhcpv6.sh b/package/network/ipv6/ipv6-support/files/dhcpv6.sh deleted file mode 100755 index 5a668cd9b1..0000000000 --- a/package/network/ipv6/ipv6-support/files/dhcpv6.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh -# Copyright (c) 2012 OpenWrt.org -. /lib/ipv6/support.sh -. /lib/netifd/netifd-proto.sh - -local device="$1" -local state="$2" -local network="" - -resolve_network network "$device" - -# Unknown network -[ -z "$network" ] && exit 0 - -if [ "$state" == "started" ]; then - # Start border - set_forward_border "$network" "$device" enable - - # Configure device - conf_set "$device" accept_ra 2 - conf_set "$device" forwarding 2 - - # Send RS on interface - [ -x /usr/sbin/6relayd ] && /usr/sbin/6relayd -s "$device" - - exit 0 -elif [ "$state" == "stopped" ]; then - # Deconfigure device - conf_set "$device" accept_ra 1 - conf_set "$device" forwarding 1 - - # Disable border - set_forward_border "$network" "$device" disable - - exit 0 -fi - -# Announce prefixes -for prefix in $PREFIXES; do - announce_prefix "$prefix" "$network" "$device" -done - -for prefix in $PREFIXES_LOST; do - announce_prefix "$prefix" "$network" "$device" delprefix -done - - -# Enable relaying if requested and we didn't get a prefix, disable otherwise -local fallback="stop" -[ -z "$PREFIXES" -a "$state" != "unbound" ] && fallback="start" -setup_prefix_fallback "$fallback" "$network" "$device" - - -# Operations in case of success -[ "$state" == "timeout" -o "$state" == "unbound" ] && exit 0 - -# Handshake completed, disable forwarding border -set_forward_border "$network" "$device" disable - -local peerdns -config_get_bool peerdns "$network" peerdns 1 -[ "$peerdns" -eq "1" ] && { - proto_init_update "*" 1 - proto_set_keep 1 - for server in $RDNSS; do - proto_add_dns_server "$server" - done - for domain in $DOMAINS; do - proto_add_dns_search "$domain" - done - proto_send_update "$network" -} - |