Searched refs:dst_sock (Results 1 – 4 of 4) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto03.c | 36 static int dst_sock = -1, sock = -1; variable 84 dst_sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in check_tiny_frame() 85 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_VERSION, TPACKET_V2); in check_tiny_frame() 86 TEST(setsockopt(dst_sock, SOL_PACKET, PACKET_RESERVE, &val, in check_tiny_frame() 90 SAFE_CLOSE(dst_sock); in check_tiny_frame() 108 TEST(setsockopt(dst_sock, SOL_PACKET, PACKET_RX_RING, &tpreq, in check_tiny_frame() 110 SAFE_CLOSE(dst_sock); in check_tiny_frame() 150 dst_sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in check_vnet_hdr() 151 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_VERSION, TPACKET_V2); in check_vnet_hdr() 152 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_VNET_HDR, 1); in check_vnet_hdr() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/send/ |
D | send02.c | 25 static int sock = -1, dst_sock = -1, listen_sock = -1; variable 118 if (dst_sock >= 0 && dst_sock != listen_sock) in cleanup() 119 SAFE_CLOSE(dst_sock); in cleanup() 135 dst_sock = listen_sock; in run() 149 dst_sock = SAFE_ACCEPT(listen_sock, NULL, NULL); in run() 152 ret = check_recv(dst_sock, SENDSIZE, i + 1); in run() 158 ret = check_recv(dst_sock, 0, i + 1); in run() 164 ret = check_recv(dst_sock, SENDSIZE + 1, i + 1); in run() 171 if (dst_sock != listen_sock) in run() 172 SAFE_CLOSE(dst_sock); in run() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt05.c | 34 static int dst_sock = -1; variable 52 dst_sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup() 56 SAFE_IOCTL(dst_sock, SIOCSIFMTU, &ifr); in setup() 58 SAFE_IOCTL(dst_sock, SIOCSIFFLAGS, &ifr); in setup() 60 SAFE_BIND(dst_sock, (struct sockaddr *)&addr, addrlen); in setup() 61 SAFE_GETSOCKNAME(dst_sock, (struct sockaddr*)&addr, &addrlen); in setup() 66 if (dst_sock != -1) in cleanup() 67 SAFE_CLOSE(dst_sock); in cleanup()
|
/third_party/rust/crates/nix/src/ |
D | ifaddrs.rs | 63 let mut dst_sock = mem::MaybeUninit::<libc::sockaddr_storage>::zeroed(); in workaround_xnu_bug() localVariable 68 dst_sock.as_mut_ptr() as *mut u8, in workaround_xnu_bug() 73 (*dst_sock.as_mut_ptr()).ss_len = in workaround_xnu_bug() 75 let dst_sock = dst_sock.assume_init(); in workaround_xnu_bug() localVariable 78 &dst_sock as *const libc::sockaddr_storage as *const libc::sockaddr; in workaround_xnu_bug()
|