Lines Matching refs:rd
108 int rd;
129 rd = recvmsg(s, &msg, 0);
130 if (rd == -1) {
135 if (rd != 5)
161 int check_signal(const unsigned char* buf, int rd,
167 if (rd != MAGIC_LEN)
176 got_it = memcmp(&buf[rd-5], "sorbo", 5) == 0;
214 int rd;
284 rd = sendto(s, buf, plen, 0, (struct sockaddr*)&dst, sizeof(dst));
285 if (rd == -1) {
289 if (rd != plen) {
290 printf("wrote %d out of %d\n", rd, plen);
303 int rd = 1;
349 rd = 1;
350 if (setsockopt(us, IPPROTO_IP, IP_RECVTTL, &rd, sizeof(rd)) == -1) {
361 rd = 1;
362 if (setsockopt(s, IPPROTO_IP, IP_HDRINCL, &rd, sizeof(rd)) == -1) {
409 rd = select(us+1, &rfds, NULL, NULL, &tv);
410 if (rd == -1) {
414 if (rd == 1 && FD_ISSET(us, &rfds)) {