Searched refs:test_fd (Results 1 - 4 of 4) sorted by relevance

/systemd/src/libsystemd-network/
H A Dtest-ndisc-rs.c33 static int test_fd[2]; variable
48 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, test_fd) < 0)
51 return test_fd[0];
73 assert_se(write(test_fd[1], advertisement, sizeof(advertisement)) ==
154 close(test_fd[1]);
H A Dtest-ipv4ll.c37 static int test_fd[2]; variable
95 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, test_fd) < 0)
98 return test_fd[0];
184 assert_se(read(test_fd[1], &arp, sizeof(struct ether_arp)) == sizeof(struct ether_arp));
189 assert_se(read(test_fd[1], &arp, sizeof(struct ether_arp)) == sizeof(struct ether_arp));
193 assert_se(read(test_fd[1], &arp, sizeof(struct ether_arp)) == sizeof(struct ether_arp));
204 safe_close(test_fd[1]);
H A Dtest-lldp.c41 static int test_fd[2]; variable
248 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, test_fd) < 0)
251 return test_fd[0];
293 safe_close(test_fd[1]);
325 assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame));
383 assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame));
426 assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame));
H A Dtest-dhcp-client.c40 static int test_fd[2]; variable
200 if (socketpair(AF_UNIX, SOCK_STREAM, 0, test_fd) < 0)
203 return test_fd[0];
262 test_fd[1] = safe_close(test_fd[1]);
405 res = write(test_fd[1], test_addr_acq_ack,
436 res = write(test_fd[1], test_addr_acq_offer,
484 test_fd[1] = safe_close(test_fd[1]);

Completed in 1316 milliseconds