Lines Matching defs:dscp
24 ATF_TC(dscp);
25 ATF_TC_HEAD(dscp, tc) {
29 ATF_TC_BODY(dscp, tc) {
34 isc_dscp_t dscp;
49 * 'dscp' should remain unchanged.
51 dscp = 100;
52 result = dns_peer_getquerydscp(peer, &dscp);
54 ATF_REQUIRE_EQ(dscp, 100);
56 result = dns_peer_getnotifydscp(peer, &dscp);
58 ATF_REQUIRE_EQ(dscp, 100);
60 result = dns_peer_gettransferdscp(peer, &dscp);
62 ATF_REQUIRE_EQ(dscp, 100);
65 * Test that setting query dscp does not affect the other
66 * dscp values. 'dscp' should remain unchanged until
69 dscp = 100;
73 result = dns_peer_getnotifydscp(peer, &dscp);
75 ATF_REQUIRE_EQ(dscp, 100);
77 result = dns_peer_gettransferdscp(peer, &dscp);
79 ATF_REQUIRE_EQ(dscp, 100);
81 result = dns_peer_getquerydscp(peer, &dscp);
83 ATF_REQUIRE_EQ(dscp, 1);
86 * Test that setting notify dscp does not affect the other
87 * dscp values. 'dscp' should remain unchanged until
91 dscp = 100;
95 result = dns_peer_gettransferdscp(peer, &dscp);
97 ATF_REQUIRE_EQ(dscp, 100);
99 result = dns_peer_getquerydscp(peer, &dscp);
101 ATF_REQUIRE_EQ(dscp, 1);
103 result = dns_peer_getnotifydscp(peer, &dscp);
105 ATF_REQUIRE_EQ(dscp, 2);
108 * Test that setting notify dscp does not affect the other
109 * dscp values. Check that appropriate values are returned.
111 dscp = 100;
115 result = dns_peer_getquerydscp(peer, &dscp);
117 ATF_REQUIRE_EQ(dscp, 1);
119 result = dns_peer_getnotifydscp(peer, &dscp);
121 ATF_REQUIRE_EQ(dscp, 2);
123 result = dns_peer_gettransferdscp(peer, &dscp);
125 ATF_REQUIRE_EQ(dscp, 3);
135 ATF_TP_ADD_TC(tp, dscp);