Lines Matching refs:len

117 	socklen_t len;
123 len = sizeof(test_options);
124 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0)
128 if (len != 0)
130 "%d bytes", socktypename, len);
153 len = sizeof(test_options);
154 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0)
161 if (len != sizeof(new_options))
163 "returned %d bytes of data", socktypename, len);
193 len = sizeof(test_options);
194 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0)
198 if (len != 0)
200 "returned %d bytes", socktypename, len);
218 socklen_t len;
228 len = sizeof(flag[0]);
229 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0)
258 len = sizeof(flag[0]);
259 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0)
302 len = sizeof(flag);
303 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0)
307 if (len != sizeof(flag[0]))
309 "initial get\n", len);
328 len = sizeof(flag);
329 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0)
356 len = sizeof(flag);
357 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0)
395 socklen_t len;
403 len = sizeof(val);
404 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0)
408 if (len != sizeof(val[0]))
410 "returned %d bytes", socktypename, optionname, len);
435 len = sizeof(val);
436 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0)
440 if (len != sizeof(val[0]))
442 "128 returned %d bytes", socktypename, optionname, len);
461 if (len != sizeof(val[0]))
464 len);
496 len = sizeof(val);
497 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0)
501 if (len != sizeof(val[0]))
504 len);
535 socklen_t len;
549 len = sizeof(val);
550 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0)
553 if (len != sizeof(val[0]))
555 "returned %d bytes", socktypename, optionname, len);
580 len = sizeof(val);
581 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0)
585 if (len != sizeof(val[0]))
588 newvalue, len);
617 len = sizeof(val);
618 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0)
622 if (len != sizeof(val[0]))
624 "returned %d bytes", socktypename, optionname, len);