1a192e900Samaguire<?xml version="1.0"?>
2a192e900Samaguire<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3a192e900Samaguire<!--
4eb1a3463STruong Nguyen Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
5a192e900Samaguire Use is subject to license terms.
6a192e900Samaguire
7a192e900Samaguire CDDL HEADER START
8a192e900Samaguire
9a192e900Samaguire The contents of this file are subject to the terms of the
10a192e900Samaguire Common Development and Distribution License (the "License").
11a192e900Samaguire You may not use this file except in compliance with the License.
12a192e900Samaguire
13a192e900Samaguire You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14a192e900Samaguire or http://www.opensolaris.org/os/licensing.
15a192e900Samaguire See the License for the specific language governing permissions
16a192e900Samaguire and limitations under the License.
17a192e900Samaguire
18a192e900Samaguire When distributing Covered Code, include this CDDL HEADER in each
19a192e900Samaguire file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20a192e900Samaguire If applicable, add the following below this CDDL HEADER, with the
21a192e900Samaguire fields enclosed by brackets "[]" replaced with your own identifying
22a192e900Samaguire information: Portions Copyright [yyyy] [name of copyright owner]
23a192e900Samaguire
24a192e900Samaguire CDDL HEADER END
25a192e900Samaguire
26a192e900Samaguire	NOTE:  This service manifest is not editable; its contents will
27a192e900Samaguire	be overwritten by package or patch operations, including
28a192e900Samaguire	operating system upgrade.  Make customizations in a different
29a192e900Samaguire	file.
30a192e900Samaguire-->
31a192e900Samaguire
32ceb97a6aSamaguire<service_bundle type='manifest' name='SUNWroutr:rdisc'>
33a192e900Samaguire
34a192e900Samaguire<service
35a192e900Samaguire	name='network/routing/rdisc'
36a192e900Samaguire	type='service'
37a192e900Samaguire	version='1'>
38a192e900Samaguire
39a192e900Samaguire	<single_instance />
40a192e900Samaguire
41a192e900Samaguire	<instance name='default' enabled='false' >
42a192e900Samaguire
43a192e900Samaguire	<!-- in.rdisc will not run unless routing-setup has run -->
44a192e900Samaguire	<dependency
45a192e900Samaguire		name='network_routing_setup'
46a192e900Samaguire		grouping='require_all'
47a192e900Samaguire		restart_on='refresh'
48a192e900Samaguire		type='service'>
49a192e900Samaguire		<service_fmri value='svc:/network/routing-setup' />
50a192e900Samaguire	</dependency>
51a192e900Samaguire
52a192e900Samaguire	<exec_method
53a192e900Samaguire		type='method'
54a192e900Samaguire		name='start'
55a192e900Samaguire		exec='/lib/svc/method/svc-rdisc'
56a192e900Samaguire		timeout_seconds='60'>
57a192e900Samaguire		<method_context>
58a192e900Samaguire			<method_credential user='root' group='root'
59f4b3ec61Sdhprivileges='basic,proc_owner,proc_fork,proc_exec,proc_info,proc_session,file_chown,sys_ip_config,net_icmpaccess,net_rawaccess'/>
60a192e900Samaguire		</method_context>
61a192e900Samaguire	</exec_method>
62a192e900Samaguire
63a192e900Samaguire	<exec_method
64a192e900Samaguire		type='method'
65a192e900Samaguire		name='stop'
66a192e900Samaguire		exec=':kill'
67a192e900Samaguire		timeout_seconds='60'>
68a192e900Samaguire		<method_context>
69a192e900Samaguire			<method_credential user='root' group='root'/>
70a192e900Samaguire		</method_context>
71a192e900Samaguire	</exec_method>
72a192e900Samaguire
73a192e900Samaguire	<!-- to start stop routing services -->
74a192e900Samaguire	<property_group name='general' type='framework'>
75a192e900Samaguire		<propval name='action_authorization' type='astring'
76a192e900Samaguire			value='solaris.smf.manage.routing' />
77a192e900Samaguire		<propval name='value_authorization' type='astring'
78a192e900Samaguire			value='solaris.smf.manage.routing' />
79a192e900Samaguire	</property_group>
80a192e900Samaguire
81*bbf21555SRichard Lowe	<!-- Properties in this group are used by routeadm(8) -->
82a192e900Samaguire	<property_group name='routeadm' type='application'>
83a192e900Samaguire		<stability value='Unstable' />
84a192e900Samaguire		<propval name='protocol' type='astring' value='ipv4' />
85a192e900Samaguire		<propval name='daemon' type='astring'
86a192e900Samaguire			value='/usr/sbin/in.rdisc' />
87a192e900Samaguire		<propval name='value_authorization' type='astring'
88a192e900Samaguire			value='solaris.smf.value.routing' />
89a192e900Samaguire	</property_group>
90a192e900Samaguire
91a192e900Samaguire
92*bbf21555SRichard Lowe	<!-- Properties in this group are modifiable via routeadm(8) -->
93a192e900Samaguire	<property_group name='routing' type='application'>
94a192e900Samaguire		<stability value='Evolving' />
95a192e900Samaguire
96a192e900Samaguire		<!-- Equivalent to specifying send_address -->
97a192e900Samaguire		<propval name='send_address' type='astring' value='' />
98a192e900Samaguire
99a192e900Samaguire		<!-- Equivalent to specifying receive_address -->
100a192e900Samaguire		<propval name='receive_address' type='astring' value='' />
101a192e900Samaguire
102a192e900Samaguire		<!-- Equivalent to -r option if true -->
103a192e900Samaguire		<propval name='act_as_router' type='boolean' value='false' />
104a192e900Samaguire
105*bbf21555SRichard Lowe		<!-- Equivalent to -a option if true -->
106a192e900Samaguire		<propval name='accept_all' type='boolean' value='false' />
107a192e900Samaguire
108a192e900Samaguire		<!-- Equivalent to -p preference option if set -->
109a192e900Samaguire		<propval name='preference' type='integer' value='0' />
110a192e900Samaguire
111a192e900Samaguire		<!-- Equivalent to -T interval option -->
112a192e900Samaguire		<propval name='transmit_interval' type='integer' value='600' />
113a192e900Samaguire
114a192e900Samaguire		<propval name='value_authorization' type='astring'
115a192e900Samaguire			value='solaris.smf.value.routing' />
116a192e900Samaguire	</property_group>
117a192e900Samaguire
118eb1a3463STruong Nguyen	<property_group name='firewall_context' type='com.sun,fw_definition'>
119eb1a3463STruong Nguyen		<propval name='ipf_method' type='astring'
120eb1a3463STruong Nguyen			value='/lib/svc/method/svc-rdisc ipfilter' />
121eb1a3463STruong Nguyen	</property_group>
122eb1a3463STruong Nguyen
123a192e900Samaguire	<template>
124a192e900Samaguire		<common_name>
125a192e900Samaguire			<loctext xml:lang='C'>
126a192e900Samaguire				in.rdisc network router discovery daemon
127a192e900Samaguire			</loctext>
128a192e900Samaguire		</common_name>
129a192e900Samaguire		<documentation>
130*bbf21555SRichard Lowe			<manpage title='in.rdisc' section='8'
131a192e900Samaguire				manpath='/usr/share/man' />
132a192e900Samaguire		</documentation>
133a192e900Samaguire	</template>
134a192e900Samaguire
135a192e900Samaguire	</instance>
136a192e900Samaguire	<stability value='Unstable' />
137a192e900Samaguire</service>
138a192e900Samaguire
139a192e900Samaguire</service_bundle>
140