Home
last modified time | relevance | path

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

123

/external/tcpdump/
Dprint-dhcp6.c342 size_t optlen; in dhcp6opt_print() local
357 optlen = EXTRACT_16BITS(&dh6o->dh6opt_len); in dhcp6opt_print()
358 if (ep < cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
365 if (optlen < 2) { in dhcp6opt_print()
373 if (optlen >= 2 + 6) { in dhcp6opt_print()
377 for (i = 8; i < optlen; i++) in dhcp6opt_print()
387 if (optlen >= 2 + 8) { in dhcp6opt_print()
399 if (optlen >= 2 + 2) { in dhcp6opt_print()
402 for (i = 4; i < optlen; i++) in dhcp6opt_print()
417 if (optlen < 24) { in dhcp6opt_print()
[all …]
Dprint-dccp.c325 u_int optlen; in dccp_print() local
332 optlen = dccp_print_option(cp); in dccp_print()
333 if (!optlen) goto trunc2; in dccp_print()
334 if (hlen <= optlen) break; in dccp_print()
335 hlen -= optlen; in dccp_print()
336 cp += optlen; in dccp_print()
350 u_int8_t optlen, i; in dccp_print_option() local
356 optlen = *(option +1); in dccp_print_option()
357 if (optlen < 2) { in dccp_print_option()
361 } 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
146 for (i = 0; i < len; i += optlen) { in ip6_opt_print()
148 optlen = 1; in ip6_opt_print()
151 optlen = bp[i + 1] + 2; in ip6_opt_print()
155 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.c177 u_int i2, optlen; in rtp_print() local
180 optlen = (i2 >> 16) & 0xff; in rtp_print()
181 if (optlen == 0 || optlen > len) { in rtp_print()
185 ip += optlen; in rtp_print()
186 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/qemu/include/
Dqemu-common.h237 void* optval, size_t* optlen);
240 const void* optval, size_t optlen);
245 #define qemu_getsockopt(sockfd, level, optname, optval, optlen) \ argument
246 getsockopt(sockfd, level, optname, (void *)optval, optlen)
247 #define qemu_setsockopt(sockfd, level, optname, optval, optlen) \ argument
248 setsockopt(sockfd, level, optname, (const void *)optval, optlen)
253 #define qemu_getsockopt(sockfd, level, optname, optval, optlen) \ argument
254 getsockopt(sockfd, level, optname, optval, optlen)
255 #define qemu_setsockopt(sockfd, level, optname, optval, optlen) \ argument
256 setsockopt(sockfd, level, optname, optval, optlen)
/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/chromium_org/third_party/yasm/source/patched-yasm/frontends/yasm/
Dyasm-options.c72 size_t optlen; in parse_cmdline() local
75 (optlen = strlen(options[i].lopt))) == 0) { in parse_cmdline()
77 char c = argv[0][2 + optlen]; in parse_cmdline()
/external/valgrind/main/coregrind/
Dpub_core_libcfile.h75 void *optval, Int *optlen );
77 void *optval, Int optlen );
/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/
D_macos.h457 …atus _MD_getsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen);
460 …_MD_setsockopt(PRFileDesc *fd, PRInt32 level, PRInt32 optname, const char* optval, PRInt32 optlen);
511 …_MD_GETSOCKOPT(fd,level,optname,optval,optlen) macsock_getsockopt(fd->secret->md.osfd,level,optna… argument
512 …_MD_SETSOCKOPT(fd,level,optname,optval,optlen) macsock_setsockopt(fd->secret->md.osfd,level,optna… argument
D_sunos4.h130 extern int getsockopt (int s, int level, int optname, char* optval, int* optlen);
131 extern int setsockopt (int s, int level, int optname, const char* optval, int optlen);
/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/kernel-headers/original/uapi/linux/
Disdn_ppp.h63 int optlen; member
/external/chromium_org/third_party/webrtc/test/channel_transport/
Dudp_socket_posix.cc125 const int8_t* optval, int32_t optlen) in SetSockopt() argument
127 if(0 == setsockopt(_socket, level, optname, optval, optlen )) in SetSockopt()
/external/openssl/crypto/bio/
Dbss_dgram.c1011 socklen_t optlen; in dgram_sctp_read() local
1152 optlen = (socklen_t) sizeof(int); in dgram_sctp_read()
1153 ret = getsockopt(b->num, SOL_SOCKET, SO_RCVBUF, &optval, &optlen); in dgram_sctp_read()
1160 optlen = (socklen_t) sizeof(int); in dgram_sctp_read()
1162 &optval, &optlen); in dgram_sctp_read()
1194 optlen = (socklen_t)(sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t)); in dgram_sctp_read()
1195 authchunks = OPENSSL_malloc(optlen); in dgram_sctp_read()
1196 memset(authchunks, 0, sizeof(optlen)); in dgram_sctp_read()
1197 ii = getsockopt(b->num, IPPROTO_SCTP, SCTP_PEER_AUTH_CHUNKS, authchunks, &optlen); in dgram_sctp_read()
1201 p < (unsigned char*) authchunks + optlen; in dgram_sctp_read()
/external/chromium_org/third_party/openssl/openssl/crypto/bio/
Dbss_dgram.c1011 socklen_t optlen; in dgram_sctp_read() local
1152 optlen = (socklen_t) sizeof(int); in dgram_sctp_read()
1153 ret = getsockopt(b->num, SOL_SOCKET, SO_RCVBUF, &optval, &optlen); in dgram_sctp_read()
1160 optlen = (socklen_t) sizeof(int); in dgram_sctp_read()
1162 &optval, &optlen); in dgram_sctp_read()
1194 optlen = (socklen_t)(sizeof(sctp_assoc_t) + 256 * sizeof(uint8_t)); in dgram_sctp_read()
1195 authchunks = OPENSSL_malloc(optlen); in dgram_sctp_read()
1196 memset(authchunks, 0, sizeof(optlen)); in dgram_sctp_read()
1197 ii = getsockopt(b->num, IPPROTO_SCTP, SCTP_PEER_AUTH_CHUNKS, authchunks, &optlen); in dgram_sctp_read()
1201 p < (unsigned char*) authchunks + optlen; in dgram_sctp_read()

123