Home
last modified time | relevance | path

Searched refs:nd_opt (Results 1 – 4 of 4) sorted by relevance

/net/6lowpan/
Dndisc.c22 struct nd_opt_hdr *nd_opt, in lowpan_ndisc_parse_802154_options() argument
25 switch (nd_opt->nd_opt_len) { in lowpan_ndisc_parse_802154_options()
27 if (ndopts->nd_802154_opt_array[nd_opt->nd_opt_type]) in lowpan_ndisc_parse_802154_options()
30 __func__, nd_opt->nd_opt_type); in lowpan_ndisc_parse_802154_options()
32 ndopts->nd_802154_opt_array[nd_opt->nd_opt_type] = nd_opt; in lowpan_ndisc_parse_802154_options()
41 struct nd_opt_hdr *nd_opt, in lowpan_ndisc_parse_options() argument
47 switch (nd_opt->nd_opt_type) { in lowpan_ndisc_parse_options()
50 return lowpan_ndisc_parse_802154_options(dev, nd_opt, ndopts); in lowpan_ndisc_parse_options()
/net/netfilter/
Dnf_conntrack_proto_icmpv6.c140 struct nd_opt_hdr nd_opt; in nf_conntrack_icmpv6_redirect() member
143 const struct nd_opt_hdr *nd_opt; in nf_conntrack_icmpv6_redirect() local
163 nd_opt = skb_header_pointer(skb, dataoff, sizeof(*nd_opt), &tmp.nd_opt); in nf_conntrack_icmpv6_redirect()
164 if (!nd_opt || nd_opt->nd_opt_len == 0) { in nf_conntrack_icmpv6_redirect()
172 if (nd_opt->nd_opt_type != ND_OPT_REDIRECT_HDR) in nf_conntrack_icmpv6_redirect()
/net/ipv6/
Dndisc.c223 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)opt; in ndisc_parse_options() local
225 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options()
232 l = nd_opt->nd_opt_len << 3; in ndisc_parse_options()
235 if (ndisc_ops_parse_options(dev, nd_opt, ndopts)) in ndisc_parse_options()
237 switch (nd_opt->nd_opt_type) { in ndisc_parse_options()
243 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { in ndisc_parse_options()
246 __func__, nd_opt->nd_opt_type); in ndisc_parse_options()
248 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
252 ndopts->nd_opts_pi_end = nd_opt; in ndisc_parse_options()
253 if (!ndopts->nd_opt_array[nd_opt->nd_opt_type]) in ndisc_parse_options()
[all …]
/net/openvswitch/
Dflow.c444 struct nd_opt_hdr *nd_opt = in parse_icmpv6() local
446 int opt_len = nd_opt->nd_opt_len * 8; in parse_icmpv6()
455 if (nd_opt->nd_opt_type == ND_OPT_SOURCE_LL_ADDR in parse_icmpv6()
460 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()
461 } else if (nd_opt->nd_opt_type == ND_OPT_TARGET_LL_ADDR in parse_icmpv6()
466 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()