blob: 79ad4e2bf25952e647b58b86b19110935188214c (
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
26
27
28
29
|
#!/bin/sh
. lib/generic.sh
ts_log "[Testing rule with option dsfield/tos]"
ts_ip "$0" "Add IPv4 rule with dsfield 0x10" -4 rule add dsfield 0x10
ts_ip "$0" "Show IPv4 rule with dsfield 0x10" -4 rule show dsfield 0x10
test_on "tos 0x10"
test_lines_count 1
ts_ip "$0" "Delete IPv4 rule with dsfield 0x10" -4 rule del dsfield 0x10
ts_ip "$0" "Add IPv4 rule with tos 0x10" -4 rule add tos 0x10
ts_ip "$0" "Show IPv4 rule with tos 0x10" -4 rule show tos 0x10
test_on "tos 0x10"
test_lines_count 1
ts_ip "$0" "Delete IPv4 rule with tos 0x10" -4 rule del tos 0x10
ts_ip "$0" "Add IPv6 rule with dsfield 0x10" -6 rule add dsfield 0x10
ts_ip "$0" "Show IPv6 rule with dsfield 0x10" -6 rule show dsfield 0x10
test_on "tos 0x10"
test_lines_count 1
ts_ip "$0" "Delete IPv6 rule with dsfield 0x10" -6 rule del dsfield 0x10
ts_ip "$0" "Add IPv6 rule with tos 0x10" -6 rule add tos 0x10
ts_ip "$0" "Show IPv6 rule with tos 0x10" -6 rule show tos 0x10
test_on "tos 0x10"
test_lines_count 1
ts_ip "$0" "Delete IPv6 rule with tos 0x10" -6 rule del tos 0x10
|