Home
last modified time | relevance | path

Searched refs:optlen (Results 1 – 25 of 49) 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-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-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-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/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()
724 tcp_dooptions(tp, (u_char *)optp, optlen, ti); in tcp_input()
1507 int opt, optlen; in tcp_dooptions() local
1512 for (; cnt > 0; cnt -= optlen, cp += optlen) { in tcp_dooptions()
1517 optlen = 1; in tcp_dooptions()
1519 optlen = cp[1]; in tcp_dooptions()
1520 if (optlen <= 0) in tcp_dooptions()
1529 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/test/
Dl2test.c197 socklen_t optlen; in do_connect() local
221 optlen = sizeof(opts); in do_connect()
223 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in do_connect()
306 optlen = sizeof(opts); in do_connect()
308 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in do_connect()
316 optlen = sizeof(conn); in do_connect()
318 if (getsockopt(sk, SOL_L2CAP, L2CAP_CONNINFO, &conn, &optlen) < 0) { in do_connect()
344 socklen_t optlen; in do_listen() local
394 optlen = sizeof(opts); in do_listen()
396 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &optlen) < 0) { in do_listen()
[all …]
Dscotest.c72 socklen_t optlen; in do_connect() local
108 optlen = sizeof(conn); in do_connect()
110 if (getsockopt(sk, SOL_SCO, SCO_CONNINFO, &conn, &optlen) < 0) { in do_connect()
131 socklen_t optlen; in do_listen() local
166 optlen = sizeof(addr); in do_listen()
168 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); in do_listen()
184 optlen = sizeof(conn); in do_listen()
186 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()
Davtest.c331 socklen_t optlen; in process_avdtp() local
338 optlen = sizeof(addr); in process_avdtp()
342 &optlen); in process_avdtp()
438 socklen_t optlen; in set_minimum_mtu() local
441 optlen = sizeof(l2o); in set_minimum_mtu()
443 if (getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &l2o, &optlen) < 0) { in set_minimum_mtu()
462 socklen_t optlen; in do_listen() local
491 optlen = sizeof(addr); in do_listen()
493 nsk = accept(sk, (struct sockaddr *) &addr, &optlen); in do_listen()
/external/kernel-headers/original/linux/
Dnet.h151 int optname, char __user *optval, int optlen);
153 int optname, char __user *optval, int __user *optlen);
155 int optname, char __user *optval, int optlen);
157 int optname, char __user *optval, int __user *optlen);
261 char __user *optval, int optlen), (sock, level, optname, optval, optlen)) \
263 char __user *optval, int __user *optlen), (sock, level, optname, optval, optlen)) \
Dmroute6.h144 int optname, char __user *optval, unsigned int optlen) in ip6_mroute_setsockopt() argument
151 int optname, char __user *optval, int __user *optlen) in ip6_mroute_getsockopt() argument
/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/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/ping/
Dping.c940 int optlen = 0; variable
1414 int optlen, totlen; in pr_options() local
1432 optlen = optptr[1]; in pr_options()
1433 if (optlen < 2 || optlen > totlen) in pr_options()
1554 totlen -= optlen; in pr_options()
1555 optptr += optlen; in pr_options()
2002 optlen = 40; in main()
2027 optlen = 40; in main()
2044 optlen = 40; in main()
2050 hold += ((hold+511)/512)*(optlen + 20 + 16 + 64 + 160); in main()
[all …]
/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) {

12