summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/cast-byte
blob: 4663d95a5df16bb165570b04e85e84b8624ac2f8 (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 := 0xad
}

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

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

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