Searched refs:opt_len (Results 1 – 7 of 7) sorted by relevance
/net/ipv4/ |
D | cipso_ipv4.c | 1629 u8 opt_len; in cipso_v4_validate() local 1635 opt_len = opt[1]; in cipso_v4_validate() 1636 if (opt_len < 8) { in cipso_v4_validate() 1650 while (opt_iter < opt_len) { in cipso_v4_validate() 1658 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 1663 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate() 1893 u32 opt_len; in cipso_v4_sock_setattr() local 1924 opt_len = (buf_len + 3) & ~3; in cipso_v4_sock_setattr() 1925 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); in cipso_v4_sock_setattr() 1931 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr() [all …]
|
D | geneve.c | 96 geneveh->opt_len = options_len / 4; in geneve_build_header() 117 __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, in geneve_xmit_skb() argument 125 + GENEVE_BASE_HLEN + opt_len + sizeof(struct iphdr) in geneve_xmit_skb() 140 gnvh = (struct genevehdr *)__skb_push(skb, sizeof(*gnvh) + opt_len); in geneve_xmit_skb() 141 geneve_build_header(gnvh, tun_flags, vni, opt_len, opt); in geneve_xmit_skb() 193 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv()
|
/net/dns_resolver/ |
D | dns_key.c | 90 int opt_len, opt_nlen, opt_vlen, tmp; in dns_resolver_preparse() local 93 opt_len = next_opt - opt; in dns_resolver_preparse() 94 if (!opt_len) { in dns_resolver_preparse() 100 eq = memchr(opt, '=', opt_len) ?: end; in dns_resolver_preparse()
|
/net/openvswitch/ |
D | flow.c | 389 int opt_len = nd_opt->nd_opt_len * 8; in parse_icmpv6() local 391 if (unlikely(!opt_len || opt_len > icmp_len)) in parse_icmpv6() 399 && opt_len == 8) { in parse_icmpv6() 405 && opt_len == 8) { in parse_icmpv6() 412 icmp_len -= opt_len; in parse_icmpv6() 413 offset += opt_len; in parse_icmpv6()
|
D | flow.h | 62 #define GENEVE_OPTS(flow_key, opt_len) \ argument 65 opt_len))
|
D | vport-geneve.c | 88 opts_len = geneveh->opt_len * 4; in geneve_rcv()
|
/net/ipv6/ |
D | ndisc.c | 199 struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len, in ndisc_parse_options() argument 204 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options() 207 while (opt_len) { in ndisc_parse_options() 209 if (opt_len < sizeof(struct nd_opt_hdr)) in ndisc_parse_options() 212 if (opt_len < l || l == 0) in ndisc_parse_options() 257 opt_len -= l; in ndisc_parse_options()
|