Lines Matching refs:test_fd
23 static int test_fd[2] = { -1, -1 }; variable
27 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0, test_fd) < 0) in lldp_network_bind_raw_socket()
30 return test_fd[0]; in lldp_network_bind_raw_socket()
75 safe_close(test_fd[1]); in stop_lldp_rx()
110 assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame)); in test_receive_basic_packet()
162 assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame)); in test_receive_incomplete_packet()
203 assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame)); in test_receive_oui_packet()
325 assert_se(write(test_fd[1], frame1, sizeof(frame1)) == sizeof(frame1)); in test_multiple_neighbors_sorted()
327 assert_se(write(test_fd[1], frame2, sizeof(frame2)) == sizeof(frame2)); in test_multiple_neighbors_sorted()
329 assert_se(write(test_fd[1], frame3, sizeof(frame3)) == sizeof(frame3)); in test_multiple_neighbors_sorted()
331 assert_se(write(test_fd[1], frame4, sizeof(frame4)) == sizeof(frame4)); in test_multiple_neighbors_sorted()
333 assert_se(write(test_fd[1], frame5, sizeof(frame5)) == sizeof(frame5)); in test_multiple_neighbors_sorted()
335 assert_se(write(test_fd[1], frame6, sizeof(frame6)) == sizeof(frame6)); in test_multiple_neighbors_sorted()