summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/cast-short
blob: a17b3799076eadb203b1f3cd77d9c3bf0879b6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
#  PRE: update if
#
update {
       control:Cleartext-Password := 'hello'
       request:Class := 0x0101
}

if (<short>Class == 257) {
	update reply {
		Filter-Id := "filter"
	}
}

if (<short>Class < 256) {
	update reply {
		Filter-Id += "wrong"
	}
}

if (<short>Class > 257) {
	update reply {
		Filter-Id += "wrong"
	}
}