Lines Matching refs:res
201 int res; in print_table() local
205 res = bpf_map_lookup_elem(map_fd, &curN, &curEntry); in print_table()
206 if (res < 0) { in print_table()
226 int res; in udp_client() local
242 res = getsockopt(s_send, SOL_SOCKET, SO_COOKIE, &cookie, &cookie_len); in udp_client()
243 if (res < 0) in udp_client()
245 res = bpf_map_lookup_elem(map_fd, &cookie, &dataEntry); in udp_client()
246 if (res != -1) in udp_client()
249 res = sendto(s_send, &message, sizeof(message), 0, in udp_client()
251 if (res == -1) in udp_client()
253 if (res != sizeof(message)) in udp_client()
254 error(1, 0, "%uB != %luB\n", res, sizeof(message)); in udp_client()
259 res = memcmp(&(si_other.sin_addr), &(si_me.sin_addr), in udp_client()
261 if (res != 0) in udp_client()
262 error(1, EFAULT, "sender addr error: %d\n", res); in udp_client()
264 res = bpf_map_lookup_elem(map_fd, &cookie, &dataEntry); in udp_client()
265 if (res < 0) in udp_client()