Home
last modified time | relevance | path

Searched refs:opt_len (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/tcpdump/
H A Dprint-mptcp.c184 const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) in dummy_print()
191 const u_char *opt, u_int opt_len, u_char flags) in mp_capable_print() argument
196 if (!((opt_len == 12 || opt_len == 4) && flags & TH_SYN) && in mp_capable_print()
197 !((opt_len == 20 || opt_len == 22) && (flags & (TH_SYN | TH_ACK)) == in mp_capable_print()
214 if (opt_len == 12 || opt_len >= 20) { in mp_capable_print()
216 if (opt_len >= 20) in mp_capable_print()
225 const u_char *opt, u_int opt_len, u_char flags) in mp_join_print() argument
229 if (!(opt_len == 12 && (flags & TH_SYN)) && in mp_join_print()
230 !(opt_len == 16 && (flags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) && in mp_join_print()
231 !(opt_len == 24 && (flags & TH_ACK))) in mp_join_print()
[all …]
H A Dprint-pgm.c155 uint8_t opt_type, opt_len; in pgm_print() local
436 opt_len = GET_U_1(bp); in pgm_print()
438 if (opt_len != 4) { in pgm_print()
439 ND_PRINT("[Bad OPT_LENGTH option, length %u != 4]", opt_len); in pgm_print()
458 opt_len = GET_U_1(bp); in pgm_print()
460 if (opt_len < PGM_MIN_OPT_LEN) { in pgm_print()
461 ND_PRINT("[Bad option, length %u < %u]", opt_len, in pgm_print()
465 if (opts_len < opt_len) { in pgm_print()
469 ND_TCHECK_LEN(bp, opt_len - 2); in pgm_print()
474 if (opt_len != PGM_OPT_LENGTH_LEN) { in pgm_print()
[all …]
H A Dprint-geneve.c108 uint8_t opt_len; in geneve_opts_print() local
115 opt_len = 4 + ((GET_U_1(bp + 3) & OPT_LEN_MASK) * 4); in geneve_opts_print()
119 opt_type & OPT_TYPE_CRITICAL ? "(C)" : "", opt_len); in geneve_opts_print()
121 if (opt_len > len) { in geneve_opts_print()
126 if (ndo->ndo_vflag > 1 && opt_len > 4) { in geneve_opts_print()
132 for (i = 4; i < opt_len; i += 4) { in geneve_opts_print()
138 bp += opt_len; in geneve_opts_print()
139 len -= opt_len; in geneve_opts_print()
H A Dprint-icmp6.c1395 u_int opt_len; in icmp6_opt_print() local
1419 opt_len = GET_U_1(op->nd_opt_len); in icmp6_opt_print()
1420 if (opt_len == 0) in icmp6_opt_print()
1422 if (cp + (opt_len << 3) > ep) in icmp6_opt_print()
1428 opt_len << 3, in icmp6_opt_print()
1429 opt_len); in icmp6_opt_print()
1433 l = (opt_len << 3) - 2; in icmp6_opt_print()
1437 l = (opt_len << 3) - 2; in icmp6_opt_print()
1445 (opt_len != 4) ? "badlen" : "", in icmp6_opt_print()
1452 print_unknown_data(ndo, bp,"\n\t ",opt_len<<3); in icmp6_opt_print()
[all …]
H A Dprint-bgp.c2681 uint8_t opt_type, opt_len; in bgp_open_print() local
2688 opt_len = GET_U_1(bgpopt->bgpopt_len); in bgp_open_print()
2689 if (BGP_OPT_SIZE + i + opt_len > optslen) { in bgp_open_print()
2691 opt_type, opt_len); in bgp_open_print()
2698 opt_len); in bgp_open_print()
2705 opt_len); in bgp_open_print()
2714 i += BGP_OPT_SIZE + opt_len; in bgp_open_print()
/freebsd/contrib/unbound/util/data/
H A Dmsgencode.c815 rdatalen += 4 + opt->opt_len; in calc_edns_field_size()
818 rdatalen += 4 + opt->opt_len; in calc_edns_field_size()
833 rdatalen += 4 + opt->opt_len; in calc_edns_option_size()
837 rdatalen += 4 + opt->opt_len; in calc_edns_option_size()
852 rdatalen += 4 + opt->opt_len; in calc_ede_option_size()
853 if(opt->opt_len > 2) *txt_size += opt->opt_len - 2; in calc_ede_option_size()
854 if(opt->opt_len >= 2 && sldns_read_uint16( in calc_ede_option_size()
862 rdatalen += 4 + opt->opt_len; in calc_ede_option_size()
863 if(opt->opt_len > 2) *txt_size += opt->opt_len - 2; in calc_ede_option_size()
864 if(opt->opt_len >= 2 && sldns_read_uint16( in calc_ede_option_size()
[all …]
H A Dmsgparse.c974 uint16_t opt_len = sldns_read_uint16(rdata_ptr+2); in parse_edns_options_from_query() local
981 if(opt_len > rdata_len) in parse_edns_options_from_query()
1015 if(opt_len) { in parse_edns_options_from_query()
1044 if(opt_len != 8 && (opt_len < 16 || opt_len > 40)) { in parse_edns_options_from_query()
1054 if(opt_len >= 16) { in parse_edns_options_from_query()
1058 memmove(server_cookie, rdata_ptr, opt_len); in parse_edns_options_from_query()
1079 rdata_ptr, opt_len, cookie_secrets, in parse_edns_options_from_query()
1084 rdata_ptr, opt_len, cfg->cookie_secret, in parse_edns_options_from_query()
1096 opt_len, rdata_ptr, region)) { in parse_edns_options_from_query()
1143 opt_code, opt_len, rdata_ptr, region)) { in parse_edns_options_from_query()
[all …]
H A Dmsgreply.c1120 opt->opt_len = txt_len + sizeof(uint16_t); in edns_opt_list_append_ede()
1159 opt->opt_len = len; in edns_opt_list_append()
1334 s->opt_len); in edns_opt_copy_region()
1369 s->opt_len); in edns_opt_copy_filter_region()
1395 if(p->opt_len != q->opt_len) in edns_opt_compare()
1396 return (int)q->opt_len - (int)p->opt_len; in edns_opt_compare()
1397 if(p->opt_len != 0) in edns_opt_compare()
1398 return memcmp(p->opt_data, q->opt_data, p->opt_len); in edns_opt_compare()
1445 s->opt_data = memdup(s->opt_data, s->opt_len); in edns_opt_copy_alloc()
H A Dmsgparse.h264 size_t opt_len; member
/freebsd/lib/libc/net/
H A Dsctp_sys_calls.c392 socklen_t opt_len; in sctp_getpaddrs() local
402 opt_len = (socklen_t)sizeof(uint32_t); in sctp_getpaddrs()
404 &size_of_addresses, &opt_len) != 0) { in sctp_getpaddrs()
411 opt_len = (socklen_t)((size_t)size_of_addresses + sizeof(struct sctp_getaddresses)); in sctp_getpaddrs()
412 addrs = calloc(1, (size_t)opt_len); in sctp_getpaddrs()
420 addrs, &opt_len) != 0) { in sctp_getpaddrs()
427 lim = (caddr_t)addrs + opt_len; in sctp_getpaddrs()
452 socklen_t opt_len; in sctp_getladdrs() local
461 opt_len = (socklen_t)sizeof(uint32_t); in sctp_getladdrs()
463 &size_of_addresses, &opt_len) != 0) { in sctp_getladdrs()
[all …]
/freebsd/contrib/less/
H A Dedit.c150 static void modeline_option(constant char *str, size_t opt_len) in modeline_option()
162 if (opt_len > name_len && strncmp(str, opt->opt_name, name_len) == 0) in modeline_option()
164 (*opt->opt_func)(str + name_len, opt_len - name_len); in modeline_option()
197 size_t opt_len; in modeline_options()
201 opt_len = modeline_option_len(str); in modeline_options()
202 modeline_option(str, opt_len); in modeline_options()
203 str += opt_len; in modeline_options()
149 modeline_option(char * str,int opt_len) modeline_option() argument
196 int opt_len; modeline_options() local
/freebsd/sys/contrib/zlib/
H A Dtrees.c448 s->opt_len = s->static_len = 0L; in init_block()
572 s->opt_len += (ulg)f * (unsigned)(bits + xbits); in gen_bitlen()
605 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; in gen_bitlen()
657 s->opt_len--; if (stree) s->static_len -= stree[node].Len; in build_tree()
819 s->opt_len += 3*((ulg)max_blindex + 1) + 5 + 5 + 4; in build_bl_tree()
821 s->opt_len, s->static_len)); in build_bl_tree()
1009 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
1013 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
1025 opt_lenb = (s->opt_len + 3 + 7) >> 3;
1029 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
H A Ddeflate.h256 ulg opt_len; /* bit length of current block with optimal trees */ member
/freebsd/contrib/libarchive/tar/
H A Dread.c173 size_t opt_len = strlen(reader_options) + 1; in read_archive() local
176 if ((p = malloc(module_len + opt_len)) == NULL) in read_archive()
182 memcpy(p + module_len, reader_options, opt_len); in read_archive()
H A Dwrite.c132 size_t opt_len = strlen(writer_options) + 1; in set_writer_options() local
135 if ((p = malloc(module_len + opt_len)) == NULL) in set_writer_options()
141 memcpy(p, writer_options, opt_len); in set_writer_options()
164 size_t opt_len = strlen(reader_options) + 1; in set_reader_options() local
167 if ((p = malloc(module_len + opt_len)) == NULL) in set_reader_options()
174 memcpy(p, reader_options, opt_len); in set_reader_options()
/freebsd/contrib/unbound/edns-subnet/
H A Dsubnetmod.c653 if (ecs_option->opt_len < 4) in parse_subnet_option()
663 if (ecs_option->opt_len != (size_t)((ecs->subnet_source_mask+7)/8 + 4)) in parse_subnet_option()
665 if (ecs_option->opt_len - 4 > INET6_SIZE || ecs_option->opt_len == 0) in parse_subnet_option()
679 ecs_option->opt_len - 4, ecs->subnet_source_mask)) in parse_subnet_option()
765 ecs_opt->opt_data, ecs_opt->opt_len); in subnet_log_print()
/freebsd/contrib/unbound/cachedb/
H A Dcachedb.c583 if(ede->opt_len >= 2) { in parse_data()
588 if(ede->opt_len > 2) { in parse_data()
589 size_t ede_len = ede->opt_len - 2; in parse_data()
/freebsd/sys/kern/
H A Dvfs_mount.c2561 int error, opt_len; in vfs_getopt_size() local
2563 error = vfs_getopt(opts, name, (void **)&opt_value, &opt_len); in vfs_getopt_size()
2566 if (opt_len == 0 || opt_value == NULL) in vfs_getopt_size()
2568 if (opt_value[0] == '\0' || opt_value[opt_len - 1] != '\0') in vfs_getopt_size()
/freebsd/crypto/openssh/
H A Dmisc.c2607 size_t opt_len = strlen(opt); in opt_flag() local
2615 if (strncasecmp(opts, opt, opt_len) == 0) { in opt_flag()
2616 *optsp = opts + opt_len; in opt_flag()
/freebsd/contrib/unbound/services/
H A Dmesh.c789 opt->opt_len, opt->opt_data, s->s.region)) { in mesh_schedule_prefetch_subnet()
1918 ecs->opt_code, ecs->opt_len, in mesh_continue()
H A Doutside_network.c2884 padding_option.opt_len = 0;