#!/bin/sh
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :

cat > "$1/etc/config/dscp" <<EOF
config classify
	option direction 'upload'
	option proto 'tcp'
	option dest_ip '169.254.254.1'
	option class 'cs2'
	option comment 'Service API'

config classify
	option direction 'upload'
	option proto 'icmp'
	option class 'cs4'
	option comment 'ICMP - Upload'

config classify
	option direction 'download'
	option proto 'icmp'
	option class 'cs4'
	option comment 'ICMP - Download'

config classify
	option direction 'upload'
	option proto 'udp'
	option dest_ip '91.121.128.0/23'
	option class 'cs4'
	option comment 'VoIP OVH 1 - Upload'

config classify
	option direction 'download'
	option proto 'udp'
	option src_ip '91.121.128.0/23'
	option class 'cs4'
	option comment 'VoIP OVH 1 - Download'

config classify
	option direction 'upload'
	option proto 'udp'
	option dest_ip '149.202.253.11/26'
	option class 'cs4'
	option comment 'VoIP OVH 2 - Upload'

config classify
	option direction 'download'
	option proto 'udp'
	option src_ip '149.202.253.11/26'
	option class 'cs4'
	option comment 'VoIP OVH 2 - Download'
EOF
