Home
last modified time | relevance | path

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

12

/external/tcpdump/
Dprint-dhcp6.c325 size_t optlen; in dhcp6opt_print() local
340 optlen = EXTRACT_16BITS(&dh6o->dh6opt_len); in dhcp6opt_print()
341 if (ep < cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
348 if (optlen < 2) { in dhcp6opt_print()
356 if (optlen >= 2 + 6) { in dhcp6opt_print()
360 for (i = 8; i < optlen; i++) in dhcp6opt_print()
370 if (optlen >= 2 + 8) { in dhcp6opt_print()
382 if (optlen >= 2 + 2) { in dhcp6opt_print()
385 for (i = 4; i < optlen; i++) in dhcp6opt_print()
400 if (optlen < sizeof(ia_addr) - 4) { in dhcp6opt_print()
[all …]
Dprint-dccp.c384 u_int optlen; in dccp_print() local
391 optlen = dccp_print_option(cp); in dccp_print()
392 if (!optlen) goto trunc2; in dccp_print()
393 if (hlen <= optlen) break; in dccp_print()
394 hlen -= optlen; in dccp_print()
395 cp += optlen; in dccp_print()
409 u_int8_t optlen, i; in dccp_print_option() local
418 optlen = *(option +1); in dccp_print_option()
419 if (optlen < 2) { in dccp_print_option()
423 } else optlen = 1; in dccp_print_option()
[all …]
Dprint-ip6opts.c77 int optlen; in ip6_sopt_print() local
79 for (i = 0; i < len; i += optlen) { in ip6_sopt_print()
81 optlen = 1; in ip6_sopt_print()
84 optlen = bp[i + 1] + 2; in ip6_sopt_print()
88 if (i + optlen > len) in ip6_sopt_print()
142 int optlen = 0; in ip6_opt_print() local
144 for (i = 0; i < len; i += optlen) { in ip6_opt_print()
146 optlen = 1; in ip6_opt_print()
149 optlen = bp[i + 1] + 2; in ip6_opt_print()
153 if (i + optlen > len) in ip6_opt_print()
[all …]
Dprint-decnet.c713 u_int segsize, optlen; in print_nsp() local
724 optlen = EXTRACT_LE_8BITS(ccmp->cc_optlen); in print_nsp()
754 if (optlen) { in print_nsp()
755 (void)printf("optlen %d ", optlen); in print_nsp()
757 if (optlen > nsplen - sizeof(struct ccmsg)) in print_nsp()
760 TCHECK2(*dp, optlen); in print_nsp()
761 pdata(dp, optlen); in print_nsp()
771 u_int optlen; in print_nsp() local
780 optlen = EXTRACT_LE_8BITS(dimp->di_optlen); in print_nsp()
783 if (optlen) { in print_nsp()
[all …]
Dprint-mobility.c95 int optlen; in mobility_opt_print() local
97 for (i = 0; i < len; i += optlen) { in mobility_opt_print()
99 optlen = 1; in mobility_opt_print()
102 optlen = bp[i + 1] + 2; in mobility_opt_print()
106 if (i + optlen > len) in mobility_opt_print()
Dprint-udp.c179 u_int i2, optlen; in rtp_print() local
182 optlen = (i2 >> 16) & 0xff; in rtp_print()
183 if (optlen == 0 || optlen > len) { in rtp_print()
187 ip += optlen; in rtp_print()
188 len -= optlen; in rtp_print()
/external/bluetooth/bluez/test/
Dl2test.c185 socklen_t optlen; in do_connect() local
209 optlen = sizeof(opts); in do_connect()
211 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in do_connect()
286 optlen = sizeof(opts); in do_connect()
288 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in do_connect()
296 optlen = sizeof(conn); in do_connect()
298 if (getsockopt(sk, SOL_L2CAP, L2CAP_CONNINFO, &conn, &optlen) < 0) { in do_connect()
324 socklen_t optlen; in do_listen() local
369 optlen = sizeof(opts); in do_listen()
371 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in do_listen()
[all …]
Dscotest.c69 socklen_t optlen; in do_connect() local
104 optlen = sizeof(conn); in do_connect()
106 if (getsockopt(sk, SOL_SCO, SCO_CONNINFO, &conn, &optlen) < 0) { in do_connect()
127 socklen_t optlen; in do_listen() local
161 optlen = sizeof(addr); in do_listen()
163 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); in do_listen()
179 optlen = sizeof(conn); in do_listen()
181 if (getsockopt(nsk, SOL_SCO, SCO_CONNINFO, &conn, &optlen) < 0) { in do_listen()
Drctest.c142 socklen_t optlen; in do_connect() local
227 optlen = sizeof(conn); in do_connect()
229 if (getsockopt(sk, SOL_RFCOMM, RFCOMM_CONNINFO, &conn, &optlen) < 0) { in do_connect()
250 socklen_t optlen; in do_listen() local
310 optlen = sizeof(addr); in do_listen()
312 if (getsockname(sk, (struct sockaddr *) &addr, &optlen) < 0) { in do_listen()
324 optlen = sizeof(addr); in do_listen()
326 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); in do_listen()
342 optlen = sizeof(conn); in do_listen()
344 if (getsockopt(nsk, SOL_RFCOMM, RFCOMM_CONNINFO, &conn, &optlen) < 0) { in do_listen()
/external/qemu/slirp-android/
Dtcp_output.c75 unsigned optlen, hdrlen; local
274 optlen = 0;
285 optlen = 4;
319 hdrlen += optlen;
325 if (len > tp->t_maxseg - optlen) {
326 len = tp->t_maxseg - optlen;
428 if (optlen) {
429 memcpy((caddr_t)(ti + 1), (caddr_t)opt, optlen);
430 ti->ti_off = (sizeof (struct tcphdr) + optlen) >> 2;
465 if (len + optlen)
[all …]
Dip_input.c508 int opt, optlen, cnt, off, code, type, forward = 0; local
516 for (; cnt > 0; cnt -= optlen, cp += optlen) {
521 optlen = 1;
523 optlen = cp[IPOPT_OLEN];
524 if (optlen <= 0 || optlen > cnt) {
565 if (off > optlen - sizeof(struct in_addr)) {
608 if (off > optlen - sizeof(struct in_addr))
Dip_icmp.c326 int optlen = hlen - sizeof(struct ip ); in icmp_reflect() local
344 if (optlen > 0) { in icmp_reflect()
351 hlen -= optlen; in icmp_reflect()
353 ip->ip_len -= optlen; in icmp_reflect()
354 m->m_len -= optlen; in icmp_reflect()
Dtcp_input.c238 int optlen = 0; in tcp_input() local
323 optlen = off - sizeof (struct tcphdr); in tcp_input()
471 tcp_dooptions(tp, (u_char *)optp, optlen, ti); in tcp_input()
723 tcp_dooptions(tp, (u_char *)optp, optlen, ti); in tcp_input()
1506 int opt, optlen; in tcp_dooptions() local
1511 for (; cnt > 0; cnt -= optlen, cp += optlen) { in tcp_dooptions()
1516 optlen = 1; in tcp_dooptions()
1518 optlen = cp[1]; in tcp_dooptions()
1519 if (optlen <= 0) in tcp_dooptions()
1528 if (optlen != TCPOLEN_MAXSEG) in tcp_dooptions()
/external/qemu/slirp/
Dtcp_output.c75 unsigned optlen, hdrlen; local
274 optlen = 0;
285 optlen = 4;
319 hdrlen += optlen;
325 if (len > tp->t_maxseg - optlen) {
326 len = tp->t_maxseg - optlen;
428 if (optlen) {
429 memcpy((caddr_t)(ti + 1), (caddr_t)opt, optlen);
430 ti->ti_off = (sizeof (struct tcphdr) + optlen) >> 2;
465 if (len + optlen)
[all …]
Dip_input.c508 int opt, optlen, cnt, off, code, type, forward = 0; local
516 for (; cnt > 0; cnt -= optlen, cp += optlen) {
521 optlen = 1;
523 optlen = cp[IPOPT_OLEN];
524 if (optlen <= 0 || optlen > cnt) {
565 if (off > optlen - sizeof(struct in_addr)) {
608 if (off > optlen - sizeof(struct in_addr))
Dip_icmp.c324 int optlen = hlen - sizeof(struct ip ); in icmp_reflect() local
342 if (optlen > 0) { in icmp_reflect()
349 hlen -= optlen; in icmp_reflect()
351 ip->ip_len -= optlen; in icmp_reflect()
352 m->m_len -= optlen; in icmp_reflect()
Dtcp_input.c238 int optlen = 0; in tcp_input() local
323 optlen = off - sizeof (struct tcphdr); in tcp_input()
466 tcp_dooptions(tp, (u_char *)optp, optlen, ti); in tcp_input()
718 tcp_dooptions(tp, (u_char *)optp, optlen, ti); in tcp_input()
1501 int opt, optlen; in tcp_dooptions() local
1506 for (; cnt > 0; cnt -= optlen, cp += optlen) { in tcp_dooptions()
1511 optlen = 1; in tcp_dooptions()
1513 optlen = cp[1]; in tcp_dooptions()
1514 if (optlen <= 0) in tcp_dooptions()
1523 if (optlen != TCPOLEN_MAXSEG) in tcp_dooptions()
/external/bluetooth/bluez/plugins/
Decho.c67 socklen_t optlen; in connect_event() local
74 optlen = sizeof(addr); in connect_event()
76 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); in connect_event()
/external/ping/
Dping.c938 int optlen = 0; variable
1412 int optlen, totlen; in pr_options() local
1430 optlen = optptr[1]; in pr_options()
1431 if (optlen < 2 || optlen > totlen) in pr_options()
1552 totlen -= optlen; in pr_options()
1553 optptr += optlen; in pr_options()
1956 optlen = 40; in main()
1981 optlen = 40; in main()
1998 optlen = 40; in main()
2004 hold += ((hold+511)/512)*(optlen + 20 + 16 + 64 + 160); in main()
[all …]
/external/bluetooth/bluez/tools/
Dl2ping.c76 socklen_t optlen; in ping() local
123 optlen = sizeof(addr); in ping()
125 if (getsockname(sk, (struct sockaddr *) &addr, &optlen) < 0) { in ping()
/external/bluetooth/bluez/src/
Dsdpd-server.c66 socklen_t optlen; in init_server() local
101 optlen = sizeof(opts); in init_server()
103 if (getsockopt(l2cap_sock, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in init_server()
/external/ppp/pppd/
Dccp.c1493 int optlen; local
1521 optlen = p[1];
1522 if (optlen < 2 || optlen > len)
1525 len -= optlen;
1526 optend = p + optlen;
1530 if (optlen >= CILEN_MPPE) {
1551 if (optlen >= CILEN_DEFLATE) {
1563 if (optlen >= CILEN_BSD_COMPRESS) {
1570 if (optlen >= CILEN_PREDICTOR_1) {
1576 if (optlen >= CILEN_PREDICTOR_2) {
/external/opencore/oscl/oscl/config/android/
Dosclconfig_io.h168 int opterr;socklen_t optlen=sizeof(opterr);\
169 ok=(getsockopt(s,SOL_SOCKET,SO_ERROR,(void *)&opterr,&optlen)!=(-1));\
/external/opencore/oscl/oscl/config/linux/
Dosclconfig_io.h154 int opterr;socklen_t optlen=sizeof(opterr);\
155 ok=(getsockopt(s,SOL_SOCKET,SO_ERROR,(void *)&opterr,&optlen)!=(-1));\
/external/clearsilver/util/
Dneo_net.c161 socklen_t optlen; in ne_net_connect() local
231 optlen = sizeof(optval); in ne_net_connect()
233 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &optval, &optlen) == -1) in ne_net_connect()

12