/external/tcpdump/ |
D | print-dhcp6.c | 287 size_t optlen; in dhcp6opt_print() local 302 optlen = EXTRACT_16BITS(&dh6o->dh6opt_len); in dhcp6opt_print() 303 if (ep < cp + sizeof(*dh6o) + optlen) in dhcp6opt_print() 307 ND_TCHECK2(*(cp + sizeof(*dh6o)), optlen); in dhcp6opt_print() 311 if (optlen < 2) { in dhcp6opt_print() 319 if (optlen >= 2 + 6) { in dhcp6opt_print() 323 for (i = 8; i < optlen; i++) in dhcp6opt_print() 333 if (optlen >= 2 + 8) { in dhcp6opt_print() 345 if (optlen >= 2 + 2) { in dhcp6opt_print() 348 for (i = 4; i < optlen; i++) in dhcp6opt_print() [all …]
|
D | print-dccp.c | 490 u_int optlen; in dccp_print() local 496 optlen = dccp_print_option(ndo, cp, hlen); in dccp_print() 497 if (!optlen) in dccp_print() 499 if (hlen <= optlen) in dccp_print() 501 hlen -= optlen; in dccp_print() 502 cp += optlen; in dccp_print() 535 uint8_t optlen, i; in dccp_print_option() local 541 optlen = *(option +1); in dccp_print_option() 542 if (optlen < 2) { in dccp_print_option() 551 optlen = 1; in dccp_print_option() [all …]
|
D | print-ip6opts.c | 48 int optlen; in ip6_sopt_print() local 50 for (i = 0; i < len; i += optlen) { in ip6_sopt_print() 52 optlen = 1; in ip6_sopt_print() 55 optlen = bp[i + 1] + 2; in ip6_sopt_print() 59 if (i + optlen > len) in ip6_sopt_print() 92 int optlen = 0; in ip6_opt_print() local 96 for (i = 0; i < len; i += optlen) { in ip6_opt_print() 98 optlen = 1; in ip6_opt_print() 101 optlen = bp[i + 1] + 2; in ip6_opt_print() 105 if (i + optlen > len) in ip6_opt_print() [all …]
|
D | print-hncp.c | 269 uint8_t type, optlen; in dhcpv4_print() local 277 optlen = (uint8_t)tlv[1]; in dhcpv4_print() 285 ND_PRINT((ndo," (%u)", optlen + 2 )); in dhcpv4_print() 286 if (i + 2 + optlen > length) in dhcpv4_print() 292 if (optlen < 4 || optlen % 4 != 0) { in dhcpv4_print() 295 for (t = 0; t < optlen; t += 4) in dhcpv4_print() 301 while (tp < value + optlen) { in dhcpv4_print() 303 if ((tp = ns_nprint(ndo, tp, value + optlen)) == NULL) in dhcpv4_print() 310 i += 2 + optlen; in dhcpv4_print() 321 uint16_t type, optlen; in dhcpv6_print() local [all …]
|
D | print-mobility.c | 118 unsigned i, optlen; in mobility_opt_print() local 120 for (i = 0; i < len; i += optlen) { in mobility_opt_print() 123 optlen = 1; in mobility_opt_print() 127 optlen = bp[i + 1] + 2; in mobility_opt_print() 132 if (i + optlen > len) in mobility_opt_print() 134 ND_TCHECK(bp[i + optlen]); in mobility_opt_print()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_sockopt.c | 100 socklen_t optlen, addrlen; in main() local 167 optlen = sizeof(struct sctp_status); in main() 168 memset(&status, 0, optlen); in main() 170 &optlen); in main() 235 optlen = sizeof(struct sctp_status); in main() 236 memset(&status, 0, optlen); in main() 238 test_getsockopt(udp_clt_sk, SCTP_STATUS, &status, &optlen); in main() 243 optlen = sizeof(struct sctp_status); in main() 244 memset(&status, 0, optlen); in main() 247 &optlen); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 64 socklen_t optlen; variable 76 socklen_t *optlen; member 87 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 91 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 96 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen, 106 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen, 111 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 115 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen, 123 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen, [all …]
|
/external/scapy/scapy/layers/ |
D | dhcp6.py | 279 length_from = lambda pkt: pkt.optlen)] 307 length_from = lambda pkt: pkt.optlen) ] 326 length_from = lambda pkt: pkt.optlen - 24) ] 360 length_from = lambda pkt: pkt.optlen-12) ] 372 length_from = lambda pkt: pkt.optlen-4) ] 419 length_from = lambda pkt: pkt.optlen) ] 494 length_from = lambda pkt: pkt.optlen - 11) ] 531 length_from = lambda pkt: pkt.optlen-2) ] 580 length_from = lambda pkt: pkt.optlen) ] 598 length_from = lambda pkt: pkt.optlen-4) ] [all …]
|
/external/syslinux/gpxe/src/core/ |
D | getopt.c | 104 size_t optlen; in match_long_option() local 108 optlen = strlen ( longopt->name ); in match_long_option() 109 if ( strncmp ( opttext, longopt->name, optlen ) != 0 ) in match_long_option() 113 if ( opttext[optlen] == '=' ) { in match_long_option() 114 argument = &opttext[ optlen + 1 ]; in match_long_option() 115 } else if ( opttext[optlen] ) { in match_long_option()
|
/external/iputils/ |
D | ping.c | 90 int optlen = 0; variable 499 optlen = 40; in main() 524 optlen = 40; in main() 541 optlen = 40; in main() 547 hold += ((hold+511)/512)*(optlen + 20 + 16 + 64 + 160); in main() 580 if (datalen > 0xFFFF - 8 - optlen - 20) { in main() 582 …printf(stderr, "Error: packet size %d is too large. Maximum is %d\n", datalen, 0xFFFF-8-20-optlen); in main() 586 …intf(stderr, "WARNING: packet size %d is too large. Maximum is %d\n", datalen, 0xFFFF-8-20-optlen); in main() 600 printf("%d(%d) bytes of data.\n", datalen, datalen+8+optlen+20); in main() 794 int optlen; in parse_reply() local [all …]
|
/external/syslinux/core/lwip/src/core/ |
D | tcp_out.c | 92 tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, in tcp_output_alloc_header() argument 96 struct pbuf *p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); in tcp_output_alloc_header() 99 (p->len >= TCP_HLEN + optlen)); in tcp_output_alloc_header() 105 TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), TCP_ACK); in tcp_output_alloc_header() 159 u8_t optlen = LWIP_TCP_OPT_LENGTH(optflags); in tcp_create_segment() local 169 seg->len = p->tot_len - optlen; in tcp_create_segment() 193 TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), flags); in tcp_create_segment() 357 u8_t optlen = 0; in tcp_write() local 389 optlen = LWIP_TCP_OPT_LENGTH(TF_SEG_OPTS_TS); in tcp_write() 520 u16_t max_len = pcb->mss - optlen; in tcp_write() [all …]
|
/external/dtc/ |
D | util.c | 430 int optlen; in util_usage() local 438 optlen = 0; in util_usage() 444 if (optlen < l) in util_usage() 445 optlen = l; in util_usage() 460 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage() 463 (int)(optlen - strlen(long_opts[i].name) - a_arg_len), ""); in util_usage()
|
/external/syslinux/core/lwip/src/api/ |
D | sockets.c | 120 socklen_t *optlen; member 1442 lwip_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) argument 1452 if ((NULL == optval) || (NULL == optlen)) { 1488 if (*optlen < sizeof(int)) { 1494 if (*optlen < sizeof(int)) { 1521 if (*optlen < sizeof(int)) { 1527 if (*optlen < sizeof(u8_t)) { 1532 if (*optlen < sizeof(struct in_addr)) { 1537 if (*optlen < sizeof(u8_t)) { 1556 if (*optlen < sizeof(int)) { [all …]
|
/external/scapy/test/ |
D | edns0.uts | 13 tlv = EDNS0TLV(optcode=42, optlen=12, optdata="edns0tlv") 16 = EDNS0TLV(), check computed optlen 22 tlv.optcode == 42 and tlv.optlen == 8 and tlv.optdata == b"edns0tlv" 35 …ss=123, extrcode=1, version=2, z=3, rdlen=4, rdata=[EDNS0TLV(optcode=42, optlen=12, optdata="edns0…
|
/external/toybox/lib/ |
D | getmountlist.c | 91 int optlen = strlen(opt), len, no, got = 0; in comma_scan() local 98 if (optlen == len-no && !strncmp(opt, s+no, optlen)) { in comma_scan()
|
/external/syslinux/core/lwip/src/core/ipv4/ |
D | ip.c | 588 u16_t optlen) argument 608 if (optlen != 0) { 613 optlen_aligned = ((optlen + 3) & ~3); 622 MEMCPY(p->payload, ip_options, optlen); 623 if (optlen < optlen_aligned) { 625 memset(((char*)p->payload) + optlen, 0, optlen_aligned - optlen);
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.h | 243 socklen_t *optlen) in test_getsockopt() argument 245 int error = getsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_getsockopt() 253 socklen_t optlen) in test_setsockopt() argument 255 int error = setsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_setsockopt()
|
/external/ltp/include/ |
D | tst_safe_net.h | 32 #define SAFE_SETSOCKOPT(fd, level, optname, optval, optlen) \ argument 33 safe_setsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
|
/external/ltp/lib/ |
D | safe_net.c | 101 int optname, const void *optval, socklen_t optlen) in safe_setsockopt() argument 105 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt() 110 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
|
/external/strace/tests-m32/ |
D | sendfile64.c | 61 socklen_t optlen = sizeof(file_size); in main() local 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
|
D | sendfile.c | 61 socklen_t optlen = sizeof(file_size); in main() local 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
|
/external/strace/tests/ |
D | sendfile64.c | 61 socklen_t optlen = sizeof(file_size); in main() local 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
|
/external/strace/tests-mx32/ |
D | sendfile64.c | 61 socklen_t optlen = sizeof(file_size); in main() local 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-mcast_receiver.c | 373 socklen_t optlen; /* size of the result parameter */ in receive_mcast() local 380 optlen = sizeof(msgbuf_size); in receive_mcast() 381 if (getsockopt(sd, SOL_SOCKET, SO_RCVBUF, &msgbuf_size, &optlen) < 0) { in receive_mcast()
|
/external/valgrind/coregrind/ |
D | pub_core_libcfile.h | 76 void *optval, Int *optlen ); 78 void *optval, Int optlen );
|