a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# CDDL HEADER START
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# The contents of this file are subject to the terms of the
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Common Development and Distribution License (the "License").
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# You may not use this file except in compliance with the License.
4da61833a1cbbca94094f9653fd970582b97a72etrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4da61833a1cbbca94094f9653fd970582b97a72etrawick# See the License for the specific language governing permissions
4da61833a1cbbca94094f9653fd970582b97a72etrawick# and limitations under the License.
4789804be088bcd86ae637a29cdb7fda25169521jailletc# When distributing Covered Code, include this CDDL HEADER in each
4789804be088bcd86ae637a29cdb7fda25169521jailletc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4789804be088bcd86ae637a29cdb7fda25169521jailletc# If applicable, add the following below this CDDL HEADER, with the
e50c3026198fd496f183cda4c32a202925476778covener# fields enclosed by brackets "[]" replaced with your own identifying
e50c3026198fd496f183cda4c32a202925476778covener# information: Portions Copyright [yyyy] [name of copyright owner]
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# CDDL HEADER END
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# Use is subject to license terms.
d58a848a016d401b965111e50ef829e1641f7834minfrin # Allow incoming icmp from routers for successful discovery.
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# Handle upgrade - routing/daemon-args property must be mapped to properties
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# in routeadm property group. The -s option is not supported as it is
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# not compatible with SMF.
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicif [ -n "$daemon_args" ]; then
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic set_daemon_boolean_property "$SMF_FMRI" "$daemon_args" \
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener set_daemon_value_property "$SMF_FMRI" "$daemon_args" \
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener set_daemon_value_property "$SMF_FMRI" "$daemon_args" \
44ff304057225e944e220e981d434a046d14cf06covener set_daemon_boolean_property "$SMF_FMRI" "$daemon_args" \
44ff304057225e944e220e981d434a046d14cf06covener set_daemon_nonoption_properties "$SMF_FMRI" "$daemon_args" \
44ff304057225e944e220e981d434a046d14cf06covener "$options" "send_address receive_address"
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrand# Assemble arguments to daemon from properties
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrandargs="`get_daemon_option_from_boolean_property $SMF_FMRI accept_all -a true`"
caad2986f81ab263f7af41467dd622dc9add17f3ylavicargs="$args `get_daemon_option_from_property $SMF_FMRI preference -p 0`"
caad2986f81ab263f7af41467dd622dc9add17f3ylavicargs="$args `get_daemon_option_from_property $SMF_FMRI transmit_interval \
caad2986f81ab263f7af41467dd622dc9add17f3ylavicargs="$args `get_daemon_option_from_boolean_property $SMF_FMRI act_as_router \
f7317ff316c2b141feea31bddb74d5d3fa1584edjortonargs="$args `get_daemon_nonoption_property $SMF_FMRI send_address`"