xref: /titanic_50/usr/src/cmd/cmd-inet/etc/ipqosconf.3.sample (revision 6185db853e024a486ff8837e6784dd290d866112)
1# ident	"%Z%%M%	%I%	%E% SMI"
2#
3# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
4# Use is subject to license terms.
5#
6# CDDL HEADER START
7#
8# The contents of this file are subject to the terms of the
9# Common Development and Distribution License, Version 1.0 only
10# (the "License").  You may not use this file except in compliance
11# with the License.
12#
13# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14# or http://www.opensolaris.org/os/licensing.
15# See the License for the specific language governing permissions
16# and limitations under the License.
17#
18# When distributing Covered Code, include this CDDL HEADER in each
19# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20# If applicable, add the following below this CDDL HEADER, with the
21# fields enclosed by brackets "[]" replaced with your own identifying
22# information: Portions Copyright [yyyy] [name of copyright owner]
23#
24# CDDL HEADER END
25#
26
27# Mandatory file version identifier
28fmt_version 1.0
29
30# This configuration marks outbound web traffic ethernet
31# headers on a VLAN interface with a user priority corresponding
32# with the Class of Service value 1.
33
34# Before this configuration can be applied the daddr parameter
35# of filter webout needs to be given a valid ip address/hostname.
36
37action {
38	module ipgpc
39	# Name must be ipgpc.classify for ipgpc action.
40	name ipgpc.classify
41
42	class {
43		name web
44		next_action dlmark1
45	}
46
47	filter {
48		name webout
49		# Source port 80.
50		sport 80
51		# Outgoing locally generated traffic.
52		direction LOCAL_OUT
53		# w.x.y.z and the interface over which this
54		# packet leaves belong to the same VLAN
55		# group.
56		daddr w.x.y.z
57		class web
58	}
59}
60
61# Mark traffic ethernet header user priority with the value
62# corresponding with the CoS value 1.
63action {
64	module dlcosmk
65	name dlmark1
66	params {
67		# Class of Service value.
68		cos 1
69		next_action continue
70	}
71}
72