| /src/external/bsd/tcpdump/dist/ |
| print-mptcp.c | 189 const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) 196 const u_char *opt, u_int opt_len, u_char flags) 201 if (!((opt_len == 12 || opt_len == 4) && flags & TH_SYN) && 202 !((opt_len == 20 || opt_len == 22) && (flags & (TH_SYN | TH_ACK)) == 219 if (opt_len == 12 || opt_len >= 20) { 221 if (opt_len >= 20) 230 const u_char *opt, u_int opt_len, u_char flags [all...] |
| print-pgm.c | 161 uint8_t opt_type, opt_len; local 442 opt_len = GET_U_1(bp); 444 if (opt_len != 4) { 445 ND_PRINT("[Bad OPT_LENGTH option, length %u != 4]", opt_len); 464 opt_len = GET_U_1(bp); 466 if (opt_len < PGM_MIN_OPT_LEN) { 467 ND_PRINT("[Bad option, length %u < %u]", opt_len, 471 if (opts_len < opt_len) { 475 ND_TCHECK_LEN(bp, opt_len - 2); 480 if (opt_len != PGM_OPT_LENGTH_LEN) [all...] |
| print-geneve.c | 113 uint8_t opt_len; local 120 opt_len = 4 + ((GET_U_1(bp + 3) & OPT_LEN_MASK) * 4); 124 opt_type & OPT_TYPE_CRITICAL ? "(C)" : "", opt_len); 126 if (opt_len > len) { 131 if (ndo->ndo_vflag > 1 && opt_len > 4) { 137 for (i = 4; i < opt_len; i += 4) { 143 bp += opt_len; 144 len -= opt_len;
|
| print-icmp6.c | 1415 u_int opt_len; local 1439 opt_len = GET_U_1(op->nd_opt_len); 1440 if (opt_len == 0) 1442 if (cp + (opt_len << 3) > ep) 1448 opt_len << 3, 1449 opt_len); 1453 l = (opt_len << 3) - 2; 1457 l = (opt_len << 3) - 2; 1465 (opt_len != 4) ? "badlen" : "", 1472 print_unknown_data(ndo, bp,"\n\t ",opt_len<<3) [all...] |
| /src/external/bsd/ppp/dist/pppd/ |
| cbcp.c | 304 u_char type, opt_len, delay, addr_type; local 314 GETCHAR(opt_len, pckt); 315 if (opt_len < 2 || opt_len > len) { 317 dbglog("CBCP: Malformed option length (%d/%d)", opt_len, len); 321 if (opt_len > 2) { 335 if (opt_len > 4) { 338 memcpy(address, pckt, opt_len - 4); 339 address[opt_len - 4] = 0; 352 len -= opt_len; 444 int opt_len; local [all...] |
| /src/external/bsd/ppp/dist/pppd/plugins/pppol2tp/ |
| pppol2tp.c | 318 int opt, opt_len; local 378 opt_len = buf[1]; 380 if (opt_len > len || opt_len < 2) break; 381 len -= opt_len; 382 buf += opt_len; 384 dbglog("Found option type %02x; len %d", opt, opt_len); 388 if (opt == CI_ASYNCMAP && opt_len == 0x06) {
|
| /src/external/bsd/unbound/dist/util/data/ |
| msgencode.c | 831 rdatalen += 4 + opt->opt_len; 834 rdatalen += 4 + opt->opt_len; 849 rdatalen += 4 + opt->opt_len; 853 rdatalen += 4 + opt->opt_len; 868 rdatalen += 4 + opt->opt_len; 869 if(opt->opt_len > 2) *txt_size += opt->opt_len - 2; 870 if(opt->opt_len >= 2 && sldns_read_uint16( 878 rdatalen += 4 + opt->opt_len; 879 if(opt->opt_len > 2) *txt_size += opt->opt_len - 2 [all...] |
| msgparse.c | 977 uint16_t opt_len = sldns_read_uint16(rdata_ptr+2); local 984 if(opt_len > rdata_len) 1019 if(opt_len) { 1050 if(opt_len != 8 && (opt_len < 16 || opt_len > 40)) { 1060 if(opt_len >= 16) { 1064 memmove(server_cookie, rdata_ptr, opt_len); 1085 rdata_ptr, opt_len, cookie_secrets, 1090 rdata_ptr, opt_len, cfg->cookie_secret 1232 uint16_t opt_len = sldns_read_uint16(rdata_ptr+2); local [all...] |
| msgparse.h | 289 size_t opt_len; member in struct:edns_option
|
| msgreply.c | 1148 opt->opt_len = txt_len + sizeof(uint16_t); 1187 opt->opt_len = len; 1362 s->opt_len); 1397 s->opt_len); 1423 if(p->opt_len != q->opt_len) 1424 return (int)q->opt_len - (int)p->opt_len; 1425 if(p->opt_len != 0) 1426 return memcmp(p->opt_data, q->opt_data, p->opt_len); [all...] |
| /src/sys/net/ |
| ppp-deflate.c | 73 static void *z_comp_alloc(u_char *options, int opt_len); 74 static void *z_decomp_alloc(u_char *options, int opt_len); 77 static int z_comp_init(void *state, u_char *options, int opt_len, 79 static int z_decomp_init(void *state, u_char *options, int opt_len, 147 z_comp_alloc(u_char *options, int opt_len) 152 if (opt_len != CILEN_DEFLATE 190 z_comp_init(void *arg, u_char *options, int opt_len, int unit, int hdrlen, 195 if (opt_len < CILEN_DEFLATE 365 z_decomp_alloc(u_char *options, int opt_len) 370 if (opt_len != CILEN_DEFLAT [all...] |
| bsd-comp.c | 133 static void *bsd_comp_alloc(u_char *options, int opt_len); 134 static void *bsd_decomp_alloc(u_char *options, int opt_len); 136 static int bsd_comp_init(void *state, u_char *options, int opt_len, 138 static int bsd_decomp_init(void *state, u_char *options, int opt_len, 303 bsd_alloc(u_char *options, int opt_len, int decomp) 309 if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS 379 bsd_comp_alloc(u_char *options, int opt_len) 381 return bsd_alloc(options, opt_len, 0); 385 bsd_decomp_alloc(u_char *options, int opt_len) 387 return bsd_alloc(options, opt_len, 1) [all...] |
| /src/external/mit/libuv/dist/src/win/ |
| winsock.c | 83 int opt_len; local 107 opt_len = (int) sizeof protocol_info; 112 &opt_len) == 0) { 123 opt_len = (int) sizeof protocol_info; 128 &opt_len) == 0) {
|
| udp.c | 62 int opt_len; local 91 opt_len = (int) sizeof info; 93 socket, SOL_SOCKET, SO_PROTOCOL_INFOW, (char*) &info, &opt_len) == 913 int opt_len; local 917 opt_len = (int) sizeof protocol_info; 922 &opt_len) == SOCKET_ERROR) {
|
| /src/lib/librefuse/ |
| refuse_opt.c | 397 size_t i, opt_len = 0; local 406 opt[opt_len] = '\0'; 413 opt_len = 0; 417 opt[opt_len++] = arg[i+1]; 421 opt[opt_len++] = arg[i]; 426 opt[opt_len] = '\0';
|
| /src/external/cddl/osnet/dist/uts/common/zmod/ |
| trees.c | 422 s->opt_len = s->static_len = 0L; 487 * The length opt_len is updated; static_len is also updated if stree is 527 s->opt_len += (ulg)f * (bits + xbits); 560 s->opt_len += ((long)bits - (long)tree[m].Len) 616 * and corresponding code. The length opt_len is updated; static_len is 654 s->opt_len--; if (stree) s->static_len -= stree[node].Len; 814 /* opt_len now includes the length of the tree representations, except 825 /* Update opt_len to include the bit length tree and counts */ 826 s->opt_len += 3*(max_blindex+1) + 5+5+4; 828 s->opt_len, s->static_len)) [all...] |
| /src/external/gpl3/binutils/dist/zlib/ |
| trees.c | 448 s->opt_len = s->static_len = 0L; 535 * The length opt_len is updated; static_len is also updated if stree is 572 s->opt_len += (ulg)f * (unsigned)(bits + xbits); 605 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; 622 * and corresponding code. The length opt_len is updated; static_len is 657 s->opt_len--; if (stree) s->static_len -= stree[node].Len; 807 /* opt_len now includes the length of the tree representations, except the 818 /* Update opt_len to include the bit length tree and counts */ 819 s->opt_len += 3*((ulg)max_blindex + 1) + 5 + 5 + 4; 821 s->opt_len, s->static_len)) [all...] |
| /src/external/gpl3/binutils.old/dist/zlib/ |
| trees.c | 418 s->opt_len = s->static_len = 0L; 483 * The length opt_len is updated; static_len is also updated if stree is 523 s->opt_len += (ulg)f * (unsigned)(bits + xbits); 556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; 612 * and corresponding code. The length opt_len is updated; static_len is 650 s->opt_len--; if (stree) s->static_len -= stree[node].Len; 810 /* opt_len now includes the length of the tree representations, except 821 /* Update opt_len to include the bit length tree and counts */ 822 s->opt_len += 3*((ulg)max_blindex+1) + 5+5+4; 824 s->opt_len, s->static_len)) [all...] |
| /src/external/gpl3/gdb.old/dist/zlib/ |
| trees.c | 418 s->opt_len = s->static_len = 0L; 483 * The length opt_len is updated; static_len is also updated if stree is 523 s->opt_len += (ulg)f * (unsigned)(bits + xbits); 556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; 612 * and corresponding code. The length opt_len is updated; static_len is 650 s->opt_len--; if (stree) s->static_len -= stree[node].Len; 810 /* opt_len now includes the length of the tree representations, except 821 /* Update opt_len to include the bit length tree and counts */ 822 s->opt_len += 3*((ulg)max_blindex+1) + 5+5+4; 824 s->opt_len, s->static_len)) [all...] |
| /src/external/gpl3/gdb/dist/zlib/ |
| trees.c | 448 s->opt_len = s->static_len = 0L; 535 * The length opt_len is updated; static_len is also updated if stree is 572 s->opt_len += (ulg)f * (unsigned)(bits + xbits); 605 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; 622 * and corresponding code. The length opt_len is updated; static_len is 657 s->opt_len--; if (stree) s->static_len -= stree[node].Len; 807 /* opt_len now includes the length of the tree representations, except the 818 /* Update opt_len to include the bit length tree and counts */ 819 s->opt_len += 3*((ulg)max_blindex + 1) + 5 + 5 + 4; 821 s->opt_len, s->static_len)) [all...] |
| /src/common/dist/zlib/ |
| trees.c | 451 s->opt_len = s->static_len = 0L; 539 * The length opt_len is updated; static_len is also updated if stree is 576 s->opt_len += (ulg)f * (unsigned)(bits + xbits); 609 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; 626 * and corresponding code. The length opt_len is updated; static_len is 661 s->opt_len--; if (stree) s->static_len -= stree[node].Len; 811 /* opt_len now includes the length of the tree representations, except the 822 /* Update opt_len to include the bit length tree and counts */ 823 s->opt_len += 3*((ulg)max_blindex + 1) + 5 + 5 + 4; 825 s->opt_len, s->static_len)) [all...] |
| /src/external/bsd/less/dist/ |
| edit.c | 153 static void modeline_option(char *str, int opt_len) 165 if (opt_len > name_len && strncmp(str, opt->opt_name, name_len) == 0) 167 (*opt->opt_func)(str + name_len, opt_len - name_len); 200 int opt_len; local 204 opt_len = modeline_option_len(str); 205 modeline_option(str, opt_len); 206 str += opt_len;
|
| /src/external/bsd/libarchive/dist/tar/ |
| read.c | 173 size_t opt_len = strlen(reader_options) + 1; local 176 if ((p = malloc(module_len + opt_len)) == NULL) 182 memcpy(p + module_len, reader_options, opt_len);
|
| /src/external/gpl3/gcc/dist/gcc/ |
| opts-common.cc | 78 size_t mn, mn_orig, mx, md, opt_len; local 90 opt_len = cl_options[md].opt_len; 91 comp = strncmp (input, cl_options[md].opt_text + 1, opt_len); 114 if (!strncmp (input, opt->opt_text + 1, opt->opt_len) 115 && (input[opt->opt_len] == '\0' || (opt->flags & CL_JOINED))) 158 && (cl_options[mnc].opt_len 159 == cl_options[mn_orig + 1].opt_len + 1) 162 cl_options[mn_orig + 1].opt_len) == 0) 392 char *t = XOBNEWVEC (&opts_obstack, char, option->opt_len + 5) [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/ |
| opts-common.cc | 78 size_t mn, mn_orig, mx, md, opt_len; local 90 opt_len = cl_options[md].opt_len; 91 comp = strncmp (input, cl_options[md].opt_text + 1, opt_len); 114 if (!strncmp (input, opt->opt_text + 1, opt->opt_len) 115 && (input[opt->opt_len] == '\0' || (opt->flags & CL_JOINED))) 158 && (cl_options[mnc].opt_len 159 == cl_options[mn_orig + 1].opt_len + 1) 162 cl_options[mn_orig + 1].opt_len) == 0) 392 char *t = XOBNEWVEC (&opts_obstack, char, option->opt_len + 5) [all...] |