Lines Matching refs:smbuf
15 static unsigned char smbuf[BUF_LEN + 1]; variable
21 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_remaining()
36 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_end()
38 || !TEST_ptr_eq(PACKET_end(&pkt), smbuf + BUF_LEN) in test_PACKET_end()
40 || !TEST_ptr_eq(PACKET_end(&pkt), smbuf + BUF_LEN) in test_PACKET_end()
42 || !TEST_ptr_eq(PACKET_end(&pkt), smbuf + BUF_LEN)) in test_PACKET_end()
53 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_1()
70 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_4()
87 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_net_2()
104 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_net_3()
121 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_net_4()
138 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_sub_packet()
159 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_bytes()
183 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_copy_bytes()
208 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_copy_all()
211 || !TEST_mem_eq(smbuf, BUF_LEN, tmp, BUF_LEN) in test_PACKET_copy_all()
226 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_memdup()
291 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_forward()
335 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, 4)) in test_PACKET_equal()
336 || !TEST_true(PACKET_equal(&pkt, smbuf, 4)) in test_PACKET_equal()
337 || !TEST_false(PACKET_equal(&pkt, smbuf + 1, 4)) in test_PACKET_equal()
338 || !TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_equal()
339 || !TEST_true(PACKET_equal(&pkt, smbuf, BUF_LEN)) in test_PACKET_equal()
340 || !TEST_false(PACKET_equal(&pkt, smbuf, BUF_LEN - 1)) in test_PACKET_equal()
341 || !TEST_false(PACKET_equal(&pkt, smbuf, BUF_LEN + 1)) in test_PACKET_equal()
342 || !TEST_false(PACKET_equal(&pkt, smbuf, 0))) in test_PACKET_equal()
581 smbuf[i - 1] = (i * 2) & 0xff; in setup_tests()