Home
last modified time | relevance | path

Searched refs:optlen (Results 1 – 25 of 62) sorted by relevance

123

/external/tcpdump/
Dprint-dhcp6.c283 size_t optlen; in dhcp6opt_print() local
298 optlen = EXTRACT_16BITS(&dh6o->dh6opt_len); in dhcp6opt_print()
299 if (ep < cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
306 if (optlen < 2) { in dhcp6opt_print()
314 if (optlen >= 2 + 6) { in dhcp6opt_print()
318 for (i = 8; i < optlen; i++) in dhcp6opt_print()
328 if (optlen >= 2 + 8) { in dhcp6opt_print()
340 if (optlen >= 2 + 2) { in dhcp6opt_print()
343 for (i = 4; i < optlen; i++) in dhcp6opt_print()
358 if (optlen < 24) { in dhcp6opt_print()
[all …]
Dprint-dccp.c502 u_int optlen; in dccp_print() local
508 optlen = dccp_print_option(ndo, cp, hlen); in dccp_print()
509 if (!optlen) in dccp_print()
511 if (hlen <= optlen) in dccp_print()
513 hlen -= optlen; in dccp_print()
514 cp += optlen; in dccp_print()
547 uint8_t optlen, i; in dccp_print_option() local
553 optlen = *(option +1); in dccp_print_option()
554 if (optlen < 2) { in dccp_print_option()
563 optlen = 1; in dccp_print_option()
[all …]
Dprint-ip6opts.c48 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 …]
Dprint-mobility.c107 unsigned i, optlen; in mobility_opt_print() local
109 for (i = 0; i < len; i += optlen) { in mobility_opt_print()
112 optlen = 1; in mobility_opt_print()
116 optlen = bp[i + 1] + 2; in mobility_opt_print()
121 if (i + optlen > len) in mobility_opt_print()
123 ND_TCHECK(bp[i + optlen]); in mobility_opt_print()
Dprint-decnet.c1156 u_int segsize, optlen; in print_nsp() local
1167 optlen = EXTRACT_LE_8BITS(ccmp->cc_optlen); in print_nsp()
1197 if (optlen) { in print_nsp()
1198 ND_PRINT((ndo, "optlen %d ", optlen)); in print_nsp()
1200 if (optlen > nsplen - sizeof(struct ccmsg)) in print_nsp()
1203 ND_TCHECK2(*dp, optlen); in print_nsp()
1204 pdata(ndo, dp, optlen); in print_nsp()
1214 u_int optlen; in print_nsp() local
1223 optlen = EXTRACT_LE_8BITS(dimp->di_optlen); in print_nsp()
1226 if (optlen) { in print_nsp()
[all …]
Dprint-udp.c166 u_int i2, optlen; in rtp_print() local
169 optlen = (i2 >> 16) & 0xff; in rtp_print()
170 if (optlen == 0 || optlen > len) { in rtp_print()
174 ip += optlen; in rtp_print()
175 len -= optlen; in rtp_print()
/external/ltp/utils/sctp/func_tests/
Dtest_sockopt.c100 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 …]
Dtest_fragments.c96 socklen_t optlen; in main() local
212 optlen = sizeof(disable_frag); in main()
214 &optlen); in main()
/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c63 socklen_t optlen; variable
75 socklen_t *optlen; member
86 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1),
90 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1),
95 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen,
105 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen,
110 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1),
114 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1),
118 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen,
122 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen,
[all …]
/external/syslinux/gpxe/src/core/
Dgetopt.c104 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/
Dping.c90 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/
Dtcp_out.c92 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/
Dutil.c429 int optlen; in util_usage() local
437 optlen = 0; in util_usage()
443 if (optlen < l) in util_usage()
444 optlen = l; in util_usage()
459 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
462 (int)(optlen - strlen(long_opts[i].name) - a_arg_len), ""); in util_usage()
/external/syslinux/core/lwip/src/api/
Dsockets.c120 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/toybox/lib/
Dgetmountlist.c91 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/
Dip.c588 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/
Dsctputil.h243 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/testcases/network/stress/ns-tools/
Dns-mcast_receiver.c373 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()
Dns-common.c99 unsigned int optlen; /* size of sd option parameter */ in maximize_sockbuf() local
121 optlen = sizeof(bufsiz); in maximize_sockbuf()
124 &optlen) < 0) { in maximize_sockbuf()
/external/valgrind/coregrind/
Dpub_core_libcfile.h76 void *optval, Int *optlen );
78 void *optval, Int optlen );
Dm_libcfile.c1294 Int *optlen) in VG_()
1305 args[4] = (UWord)optlen; in VG_()
1315 (UWord)optval, (UWord)optlen ); in VG_()
1322 (UWord)optval, (UWord)optlen ); in VG_()
1328 (UWord)optlen, VKI_SOV_DEFAULT /*version*/); in VG_()
1338 Int optlen) in VG_()
1349 args[4] = (UWord)optlen; in VG_()
1359 (UWord)optval, (UWord)optlen ); in VG_()
1366 (UWord)optval, (UWord)optlen ); in VG_()
1373 (UWord)optval, (UWord)optlen, in VG_()
/external/ppp/pppd/
Dccp.c1497 int optlen; local
1525 optlen = p[1];
1526 if (optlen < 2 || optlen > len)
1529 len -= optlen;
1530 optend = p + optlen;
1534 if (optlen >= CILEN_MPPE) {
1555 if (optlen >= CILEN_DEFLATE) {
1567 if (optlen >= CILEN_BSD_COMPRESS) {
1574 if (optlen >= CILEN_PREDICTOR_1) {
1580 if (optlen >= CILEN_PREDICTOR_2) {
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c75 int optlen; member
146 tdat[testno].optlen)); in main()
/external/webrtc/webrtc/test/channel_transport/
Dudp_socket_posix.cc117 const int8_t* optval, int32_t optlen) in SetSockopt() argument
119 if(0 == setsockopt(_socket, level, optname, optval, optlen )) in SetSockopt()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_monitor.c346 socklen_t optlen; in nl80211_create_monitor_interface() local
414 optlen = sizeof(optval); in nl80211_create_monitor_interface()
417 (drv->monitor_sock, SOL_SOCKET, SO_PRIORITY, &optval, optlen)) { in nl80211_create_monitor_interface()

123