Searched refs:opt_len (Results 1 - 14 of 14) sorted by relevance

/linux-4.4.14/include/net/
H A Dgeneve.h47 u8 opt_len:6; member in struct:genevehdr
54 u8 opt_len:6;
H A Dcipso_ipv4.h297 u8 opt_len = opt[1]; cipso_v4_validate() local
301 if (opt_len < 8) { cipso_v4_validate()
311 for (opt_iter = 6; opt_iter < opt_len;) { cipso_v4_validate()
313 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { cipso_v4_validate()
H A Dndisc.h113 struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,
/linux-4.4.14/include/linux/
H A Dppp-comp.h40 void *(*comp_alloc) (unsigned char *options, int opt_len);
47 int opt_len, int unit, int opthdr, int debug);
60 void *(*decomp_alloc) (unsigned char *options, int opt_len);
67 int opt_len, int unit, int opthdr, int mru,
/linux-4.4.14/drivers/net/ppp/
H A Dppp_deflate.c39 static void *z_comp_alloc(unsigned char *options, int opt_len);
40 static void *z_decomp_alloc(unsigned char *options, int opt_len);
44 int opt_len,
47 int opt_len,
77 * @opt_len: length of the CCP option at @options.
88 static void *z_comp_alloc(unsigned char *options, int opt_len) z_comp_alloc() argument
93 if (opt_len != CILEN_DEFLATE || z_comp_alloc()
130 * @opt_len: length of the CCP option data at @options
140 static int z_comp_init(void *arg, unsigned char *options, int opt_len, z_comp_init() argument
145 if (opt_len < CILEN_DEFLATE || z_comp_init()
294 * @opt_len: length of the CCP option at @options.
305 static void *z_decomp_alloc(unsigned char *options, int opt_len) z_decomp_alloc() argument
310 if (opt_len != CILEN_DEFLATE || z_decomp_alloc()
344 * @opt_len: length of the CCP option data at @options
355 static int z_decomp_init(void *arg, unsigned char *options, int opt_len, z_decomp_init() argument
360 if (opt_len < CILEN_DEFLATE || z_decomp_init()
H A Dbsd_comp.c169 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) bsd_alloc() argument
358 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3 bsd_alloc()
449 static void *bsd_comp_alloc (unsigned char *options, int opt_len) bsd_comp_alloc() argument
451 return bsd_alloc (options, opt_len, 0); bsd_comp_alloc()
454 static void *bsd_decomp_alloc (unsigned char *options, int opt_len) bsd_decomp_alloc() argument
456 return bsd_alloc (options, opt_len, 1); bsd_decomp_alloc()
464 int opt_len, int unit, int debug, int decomp) bsd_init()
469 if ((opt_len != 3) || (options[0] != CI_BSD_COMPRESS) || (options[1] != 3) bsd_init()
507 int opt_len, int unit, int opthdr, int debug) bsd_comp_init()
509 return bsd_init (state, options, opt_len, unit, debug, 0); bsd_comp_init()
513 int opt_len, int unit, int opthdr, int mru, bsd_decomp_init()
516 return bsd_init (state, options, opt_len, unit, debug, 1); bsd_decomp_init()
463 bsd_init(void *state, unsigned char *options, int opt_len, int unit, int debug, int decomp) bsd_init() argument
506 bsd_comp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int debug) bsd_comp_init() argument
512 bsd_decomp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int mru, int debug) bsd_decomp_init() argument
/linux-4.4.14/lib/zlib_deflate/
H A Ddeftree.c338 s->opt_len = s->static_len = 0L; init_block()
404 * The length opt_len is updated; static_len is also updated if stree is
445 s->opt_len += (ulg)f * (bits + xbits); gen_bitlen()
478 s->opt_len += ((long)bits - (long)tree[m].Len) gen_bitlen()
535 * and corresponding code. The length opt_len is updated; static_len is
574 s->opt_len--; if (stree) s->static_len -= stree[node].Len; build_tree()
736 /* opt_len now includes the length of the tree representations, except build_bl_tree()
747 /* Update opt_len to include the bit length tree and counts */ build_bl_tree()
748 s->opt_len += 3*(max_blindex+1) + 5+5+4; build_bl_tree()
750 s->opt_len, s->static_len)); build_bl_tree()
863 ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */
874 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
878 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
880 /* At this point, opt_len and static_len are the total bit lengths of
890 opt_lenb = (s->opt_len+3+7)>>3;
894 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
950 s->compressed_len += 3 + s->opt_len;
H A Ddefutil.h220 ulg opt_len; /* bit length of current block with optimal trees */ member in struct:deflate_state
/linux-4.4.14/net/dns_resolver/
H A Ddns_key.c90 int opt_len, opt_nlen, opt_vlen, tmp; dns_resolver_preparse() local
93 opt_len = next_opt - opt; dns_resolver_preparse()
94 if (!opt_len) { dns_resolver_preparse()
100 eq = memchr(opt, '=', opt_len) ?: end; dns_resolver_preparse()
/linux-4.4.14/net/openvswitch/
H A Dflow.h44 #define TUN_METADATA_OFFSET(opt_len) \
45 (FIELD_SIZEOF(struct sw_flow_key, tun_opts) - opt_len)
46 #define TUN_METADATA_OPTS(flow_key, opt_len) \
47 ((void *)((flow_key)->tun_opts + TUN_METADATA_OFFSET(opt_len)))
H A Dflow.c401 int opt_len = nd_opt->nd_opt_len * 8; parse_icmpv6() local
403 if (unlikely(!opt_len || opt_len > icmp_len)) parse_icmpv6()
411 && opt_len == 8) { parse_icmpv6()
417 && opt_len == 8) { parse_icmpv6()
424 icmp_len -= opt_len; parse_icmpv6()
425 offset += opt_len; parse_icmpv6()
/linux-4.4.14/drivers/net/
H A Dgeneve.c210 gnvh->opt_len * 4); geneve_rx()
215 gnvh->options, gnvh->opt_len * 4); geneve_rx()
323 opts_len = geneveh->opt_len * 4; geneve_udp_encap_recv()
384 return sizeof(*gh) + gh->opt_len * 4; geneve_hlen()
425 if (gh->opt_len != gh2->opt_len || geneve_gro_receive()
628 geneveh->opt_len = options_len / 4; geneve_build_header()
640 __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, geneve_build_skb()
650 + GENEVE_BASE_HLEN + opt_len + sizeof(struct iphdr); geneve_build_skb()
663 gnvh = (struct genevehdr *)__skb_push(skb, sizeof(*gnvh) + opt_len); geneve_build_skb()
664 geneve_build_header(gnvh, tun_flags, vni, opt_len, opt); geneve_build_skb()
676 __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, geneve6_build_skb()
686 + GENEVE_BASE_HLEN + opt_len + sizeof(struct ipv6hdr); geneve6_build_skb()
699 gnvh = (struct genevehdr *)__skb_push(skb, sizeof(*gnvh) + opt_len); geneve6_build_skb()
700 geneve_build_header(gnvh, tun_flags, vni, opt_len, opt); geneve6_build_skb()
639 geneve_build_skb(struct rtable *rt, struct sk_buff *skb, __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, bool csum, bool xnet) geneve_build_skb() argument
675 geneve6_build_skb(struct dst_entry *dst, struct sk_buff *skb, __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, bool csum, bool xnet) geneve6_build_skb() argument
/linux-4.4.14/net/ipv4/
H A Dcipso_ipv4.c1631 u8 opt_len; cipso_v4_validate() local
1637 opt_len = opt[1]; cipso_v4_validate()
1638 if (opt_len < 8) { cipso_v4_validate()
1652 while (opt_iter < opt_len) { cipso_v4_validate()
1661 if (tag_len > (opt_len - opt_iter)) { cipso_v4_validate()
1891 u32 opt_len; cipso_v4_sock_setattr() local
1922 opt_len = (buf_len + 3) & ~3; cipso_v4_sock_setattr()
1923 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); cipso_v4_sock_setattr()
1929 opt->opt.optlen = opt_len; cipso_v4_sock_setattr()
1975 u32 opt_len; cipso_v4_req_setattr() local
1998 opt_len = (buf_len + 3) & ~3; cipso_v4_req_setattr()
1999 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); cipso_v4_req_setattr()
2005 opt->opt.optlen = opt_len; cipso_v4_req_setattr()
2234 u32 opt_len; cipso_v4_skbuff_setattr() local
2241 opt_len = (buf_len + 3) & ~3; cipso_v4_skbuff_setattr()
2249 len_delta = opt_len - opt->optlen; cipso_v4_skbuff_setattr()
2273 opt->optlen = opt_len; cipso_v4_skbuff_setattr()
2283 if (opt_len > buf_len) cipso_v4_skbuff_setattr()
2284 memset((char *)(iph + 1) + buf_len, 0, opt_len - buf_len); cipso_v4_skbuff_setattr()
2286 iph->ihl = 5 + (opt_len >> 2); cipso_v4_skbuff_setattr()
/linux-4.4.14/net/ipv6/
H A Dndisc.c205 struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len, ndisc_parse_options() argument
210 if (!nd_opt || opt_len < 0 || !ndopts) ndisc_parse_options()
213 while (opt_len) { ndisc_parse_options()
215 if (opt_len < sizeof(struct nd_opt_hdr)) ndisc_parse_options()
218 if (opt_len < l || l == 0) ndisc_parse_options()
263 opt_len -= l; ndisc_parse_options()

Completed in 492 milliseconds