Home
last modified time | relevance | path

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

12

/openbmc/linux/include/linux/
H A Dppp-comp.h37 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,
/openbmc/linux/net/ipv4/
H A Dip_tunnel_core.c605 if (opt_len < 0) in ip_tun_parse_opts()
606 return opt_len; in ip_tun_parse_opts()
617 if (opt_len < 0) in ip_tun_parse_opts()
660 int err, opt_len; in ip_tun_build_state() local
668 if (opt_len < 0) in ip_tun_build_state()
669 return opt_len; in ip_tun_build_state()
858 int opt_len; in ip_tun_opts_nlsize() local
892 return opt_len; in ip_tun_opts_nlsize()
947 int err, opt_len; in ip6_tun_build_state() local
955 if (opt_len < 0) in ip6_tun_build_state()
[all …]
H A Dcipso_ipv4.c1555 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()
1837 u32 opt_len; in cipso_v4_sock_setattr() local
1875 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr()
1922 u32 opt_len; in cipso_v4_req_setattr() local
1952 opt->opt.optlen = opt_len; in cipso_v4_req_setattr()
2176 u32 opt_len; in cipso_v4_skbuff_setattr() local
2215 opt->optlen = opt_len; in cipso_v4_skbuff_setattr()
[all …]
/openbmc/linux/drivers/net/ppp/
H A Dbsd_comp.c170 static void *bsd_comp_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,
451 return bsd_alloc (options, opt_len, 0); in bsd_comp_alloc()
456 return bsd_alloc (options, opt_len, 1); in bsd_decomp_alloc()
464 int opt_len, int unit, int debug, int decomp) in bsd_init() argument
507 int opt_len, int unit, int opthdr, int debug) in bsd_comp_init() argument
509 return bsd_init (state, options, opt_len, unit, debug, 0); in bsd_comp_init()
513 int opt_len, int unit, int opthdr, int mru, in bsd_decomp_init() argument
[all …]
H A Dppp_deflate.c36 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 …]
/openbmc/linux/net/sched/
H A Dact_tunnel_key.c136 return opt_len; in tunnel_key_copy_geneve_opt()
239 if (opt_len < 0) in tunnel_key_copy_opts()
240 return opt_len; in tunnel_key_copy_opts()
241 opts_len += opt_len; in tunnel_key_copy_opts()
247 dst_len -= opt_len; in tunnel_key_copy_opts()
248 dst += opt_len; in tunnel_key_copy_opts()
259 if (opt_len < 0) in tunnel_key_copy_opts()
260 return opt_len; in tunnel_key_copy_opts()
261 opts_len += opt_len; in tunnel_key_copy_opts()
271 if (opt_len < 0) in tunnel_key_copy_opts()
[all …]
/openbmc/linux/net/dns_resolver/
H A Ddns_key.c156 int opt_len, opt_nlen; in dns_resolver_preparse() local
161 opt_len = next_opt - opt; in dns_resolver_preparse()
162 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse()
164 opt_len); in dns_resolver_preparse()
168 eq = memchr(opt, '=', opt_len); in dns_resolver_preparse()
175 opt_nlen = opt_len; in dns_resolver_preparse()
/openbmc/linux/include/net/
H A Dcipso_ipv4.h272 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()
H A Dgeneve.h47 u8 opt_len:6; member
54 u8 opt_len:6;
/openbmc/linux/net/openvswitch/
H A Dflow.h52 #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)))
H A Dflow.c591 int opt_len = nd_opt->nd_opt_len * 8; in parse_icmpv6() local
593 if (unlikely(!opt_len || opt_len > icmp_len)) in parse_icmpv6()
601 && opt_len == 8) { in parse_icmpv6()
607 && opt_len == 8) { in parse_icmpv6()
614 icmp_len -= opt_len; in parse_icmpv6()
615 offset += opt_len; in parse_icmpv6()
/openbmc/linux/lib/zlib_deflate/
H A Ddeftree.c284 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 …]
H A Ddefutil.h222 ulg opt_len; /* bit length of current block with optimal trees */ member
/openbmc/linux/net/ipv6/
H A Dcalipso.c811 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 …]
H A Dexthdrs.c926 if (hdr->opt_len < 2) in ipv6_hop_ioam()
932 if (hdr->opt_len < 2 + sizeof(*trace)) in ipv6_hop_ioam()
937 if (hdr->opt_len < 2 + sizeof(*trace) + trace->remlen * 4) in ipv6_hop_ioam()
949 if (skb_ensure_writable(skb, optoff + 2 + hdr->opt_len)) in ipv6_hop_ioam()
H A Dndisc.c221 u8 *opt, int opt_len, in ndisc_parse_options() argument
226 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options()
229 while (opt_len) { in ndisc_parse_options()
232 if (opt_len < sizeof(struct nd_opt_hdr)) in ndisc_parse_options()
235 if (opt_len < l || l == 0) in ndisc_parse_options()
285 opt_len -= l; in ndisc_parse_options()
/openbmc/linux/net/l2tp/
H A Dl2tp_core.h326 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()
/openbmc/u-boot/lib/zlib/
H A Dtrees.c426 s->opt_len = s->static_len = 0L;
531 s->opt_len += (ulg)f * (bits + xbits);
564 s->opt_len += ((long)bits - (long)tree[m].Len)
658 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
830 s->opt_len += 3*(max_blindex+1) + 5+5+4;
832 s->opt_len, s->static_len));
943 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
947 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
959 opt_lenb = (s->opt_len+3+7)>>3;
963 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
H A Ddeflate.h244 ulg opt_len; /* bit length of current block with optimal trees */ member
/openbmc/linux/include/uapi/linux/
H A Dioam6.h29 __u8 opt_len; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_geneve.c108 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()
/openbmc/linux/tools/testing/selftests/net/
H A Dioam6_parser.c666 p += opt->opt_len + 2; in main()
667 hoplen -= opt->opt_len + 2; in main()
/openbmc/linux/drivers/net/
H A Dgeneve.c235 gnvh->opt_len * 4); in geneve_rx()
242 gnvh->options, gnvh->opt_len * 4, in geneve_rx()
399 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv()
499 return sizeof(*gh) + gh->opt_len * 4; in geneve_hlen()
536 if (gh->opt_len != gh2->opt_len || in geneve_gro_receive()
755 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c335 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()
/openbmc/linux/net/netfilter/
H A Dnft_inner.c199 *off += gnvh->opt_len * 4; in nft_inner_parse_tunhdr()

12