/linux-6.1.9/net/ipv4/ |
D | ip_tunnel_core.c | 586 int err, rem, opt_len, opts_len = 0; in ip_tun_parse_opts() local 603 opt_len = ip_tun_parse_opts_geneve(nla, info, opts_len, in ip_tun_parse_opts() 605 if (opt_len < 0) in ip_tun_parse_opts() 606 return opt_len; in ip_tun_parse_opts() 607 opts_len += opt_len; in ip_tun_parse_opts() 615 opt_len = ip_tun_parse_opts_vxlan(nla, info, opts_len, in ip_tun_parse_opts() 617 if (opt_len < 0) in ip_tun_parse_opts() 618 return opt_len; in ip_tun_parse_opts() 619 opts_len += opt_len; in ip_tun_parse_opts() 625 opt_len = ip_tun_parse_opts_erspan(nla, info, opts_len, in ip_tun_parse_opts() [all …]
|
D | cipso_ipv4.c | 1555 u8 opt_len; in cipso_v4_validate() local 1561 opt_len = opt[1]; in cipso_v4_validate() 1562 if (opt_len < 8) { in cipso_v4_validate() 1576 while (opt_iter < opt_len) { in cipso_v4_validate() 1584 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 1589 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate() 1837 u32 opt_len; in cipso_v4_sock_setattr() local 1868 opt_len = (buf_len + 3) & ~3; in cipso_v4_sock_setattr() 1869 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); in cipso_v4_sock_setattr() 1875 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr() [all …]
|
/linux-6.1.9/include/linux/ |
D | ppp-comp.h | 37 void *(*comp_alloc) (unsigned char *options, int opt_len); 44 int opt_len, int unit, int opthdr, int debug); 57 void *(*decomp_alloc) (unsigned char *options, int opt_len); 64 int opt_len, int unit, int opthdr, int mru,
|
/linux-6.1.9/drivers/net/ppp/ |
D | bsd_comp.c | 169 static void *bsd_alloc(unsigned char *options, int opt_len, int decomp); 170 static void *bsd_comp_alloc (unsigned char *options, int opt_len); 171 static void *bsd_decomp_alloc (unsigned char *options, int opt_len); 174 int opt_len, int unit, int debug, int decomp); 176 int opt_len, int unit, int opthdr, int debug); 178 int opt_len, int unit, int opthdr, int mru, 352 static void *bsd_alloc (unsigned char *options, int opt_len, int decomp) in bsd_alloc() argument 358 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3 in bsd_alloc() 449 static void *bsd_comp_alloc (unsigned char *options, int opt_len) in bsd_comp_alloc() argument 451 return bsd_alloc (options, opt_len, 0); in bsd_comp_alloc() [all …]
|
D | ppp_deflate.c | 36 static void *z_comp_alloc(unsigned char *options, int opt_len); 37 static void *z_decomp_alloc(unsigned char *options, int opt_len); 41 int opt_len, 44 int opt_len, 85 static void *z_comp_alloc(unsigned char *options, int opt_len) in z_comp_alloc() argument 90 if (opt_len != CILEN_DEFLATE || in z_comp_alloc() 137 static int z_comp_init(void *arg, unsigned char *options, int opt_len, in z_comp_init() argument 142 if (opt_len < CILEN_DEFLATE || in z_comp_init() 301 static void *z_decomp_alloc(unsigned char *options, int opt_len) in z_decomp_alloc() argument 306 if (opt_len != CILEN_DEFLATE || in z_decomp_alloc() [all …]
|
/linux-6.1.9/net/sched/ |
D | act_tunnel_key.c | 90 int err, data_len, opt_len; in tunnel_key_copy_geneve_opt() local 117 opt_len = sizeof(struct geneve_opt) + data_len; in tunnel_key_copy_geneve_opt() 121 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt() 134 return opt_len; in tunnel_key_copy_geneve_opt() 220 int err, rem, opt_len, len = nla_len(nla), opts_len = 0, type = 0; in tunnel_key_copy_opts() local 235 opt_len = tunnel_key_copy_geneve_opt(attr, dst, in tunnel_key_copy_opts() 237 if (opt_len < 0) in tunnel_key_copy_opts() 238 return opt_len; in tunnel_key_copy_opts() 239 opts_len += opt_len; in tunnel_key_copy_opts() 245 dst_len -= opt_len; in tunnel_key_copy_opts() [all …]
|
/linux-6.1.9/net/dns_resolver/ |
D | dns_key.c | 149 int opt_len, opt_nlen; in dns_resolver_preparse() local 154 opt_len = next_opt - opt; in dns_resolver_preparse() 155 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse() 157 opt_len); in dns_resolver_preparse() 161 eq = memchr(opt, '=', opt_len); in dns_resolver_preparse() 168 opt_nlen = opt_len; in dns_resolver_preparse()
|
/linux-6.1.9/include/net/ |
D | cipso_ipv4.h | 272 u8 opt_len = opt[1]; in cipso_v4_validate() local 276 if (opt_len < 8) { in cipso_v4_validate() 286 for (opt_iter = 6; opt_iter < opt_len;) { in cipso_v4_validate() 287 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 292 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { in cipso_v4_validate()
|
D | geneve.h | 47 u8 opt_len:6; member 54 u8 opt_len:6;
|
D | ndisc.h | 137 u8 *opt, int opt_len,
|
/linux-6.1.9/net/openvswitch/ |
D | flow.h | 52 #define TUN_METADATA_OFFSET(opt_len) \ argument 53 (sizeof_field(struct sw_flow_key, tun_opts) - opt_len) 54 #define TUN_METADATA_OPTS(flow_key, opt_len) \ argument 55 ((void *)((flow_key)->tun_opts + TUN_METADATA_OFFSET(opt_len)))
|
D | flow.c | 587 int opt_len = nd_opt->nd_opt_len * 8; in parse_icmpv6() local 589 if (unlikely(!opt_len || opt_len > icmp_len)) in parse_icmpv6() 597 && opt_len == 8) { in parse_icmpv6() 603 && opt_len == 8) { in parse_icmpv6() 610 icmp_len -= opt_len; in parse_icmpv6() 611 offset += opt_len; in parse_icmpv6()
|
/linux-6.1.9/net/ipv6/ |
D | calipso.c | 811 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local 813 if (offset < sizeof(*opt) || offset >= opt_len) in calipso_tlv_len() 817 if (offset + 1 >= opt_len) in calipso_tlv_len() 820 if (offset + tlv_len > opt_len) in calipso_tlv_len() 850 unsigned int opt_len, offset, offset_s = 0, offset_e = 0; in calipso_opt_find() local 853 opt_len = ipv6_optlen(hop); in calipso_opt_find() 856 while (offset < opt_len) { in calipso_opt_find() 888 *end = opt_len; in calipso_opt_find() 1076 int opt_len, len, ret_val = -ENOMSG, offset; in calipso_sock_getattr() local 1085 opt_len = ipv6_optlen(hop); in calipso_sock_getattr() [all …]
|
D | ndisc.c | 220 u8 *opt, int opt_len, in ndisc_parse_options() argument 225 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options() 228 while (opt_len) { in ndisc_parse_options() 230 if (opt_len < sizeof(struct nd_opt_hdr)) in ndisc_parse_options() 233 if (opt_len < l || l == 0) in ndisc_parse_options() 282 opt_len -= l; in ndisc_parse_options()
|
D | exthdrs.c | 962 if (hdr->opt_len < 2) in ipv6_hop_ioam() 968 if (hdr->opt_len < 2 + sizeof(*trace)) in ipv6_hop_ioam() 973 if (hdr->opt_len < 2 + sizeof(*trace) + trace->remlen * 4) in ipv6_hop_ioam()
|
D | ioam6_iptunnel.c | 188 tuninfo->ioamh.opt_len = sizeof(tuninfo->ioamh) - 2 + sizeof(*trace) in ioam6_build_state()
|
/linux-6.1.9/lib/zlib_deflate/ |
D | deftree.c | 284 s->opt_len = s->static_len = 0L; in init_block() 391 s->opt_len += (ulg)f * (bits + xbits); in gen_bitlen() 424 s->opt_len += ((long)bits - (long)tree[m].Len) in gen_bitlen() 520 s->opt_len--; if (stree) s->static_len -= stree[node].Len; in build_tree() 694 s->opt_len += 3*(max_blindex+1) + 5+5+4; in build_bl_tree() 696 s->opt_len, s->static_len)); in build_bl_tree() 820 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len, 824 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len, 836 opt_lenb = (s->opt_len+3+7)>>3; 840 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len, [all …]
|
D | defutil.h | 222 ulg opt_len; /* bit length of current block with optimal trees */ member
|
/linux-6.1.9/net/l2tp/ |
D | l2tp_core.h | 326 int opt_len = session->peer_cookie_len + l2tp_get_l2specific_len(session); in l2tp_v3_ensure_opt_in_linear() local 328 if (opt_len > 0) { in l2tp_v3_ensure_opt_in_linear() 331 if (!pskb_may_pull(skb, off + opt_len)) in l2tp_v3_ensure_opt_in_linear()
|
/linux-6.1.9/include/uapi/linux/ |
D | ioam6.h | 29 __u8 opt_len; member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_geneve.c | 108 geneveh->opt_len = tun_info->options_len / 4; in mlx5e_gen_ip_tunnel_header_geneve() 115 if (!geneveh->opt_len) in mlx5e_gen_ip_tunnel_header_geneve()
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | ioam6_parser.c | 666 p += opt->opt_len + 2; in main() 667 hoplen -= opt->opt_len + 2; in main()
|
/linux-6.1.9/drivers/net/ |
D | geneve.c | 235 gnvh->opt_len * 4); in geneve_rx() 242 gnvh->options, gnvh->opt_len * 4, in geneve_rx() 389 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv() 489 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen() 526 if (gh->opt_len != gh2->opt_len || in geneve_gro_receive() 745 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/ |
D | action.c | 335 int opt_len, opt_cnt, act_start, tot_push_len; in nfp_fl_push_geneve_options() local 345 opt_len = ip_tun->options_len; in nfp_fl_push_geneve_options() 346 while (opt_len > 0) { in nfp_fl_push_geneve_options() 362 opt_len -= sizeof(struct geneve_opt) + opt->length * 4; in nfp_fl_push_geneve_options()
|
/linux-6.1.9/security/selinux/ |
D | hooks.c | 2555 static inline int opt_len(const char *s) in opt_len() function 2578 int len = opt_len(from); in selinux_sb_eat_lsm_opts()
|