Home
last modified time | relevance | path

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

/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/net/ipv6/
Dndisc.c224 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)opt; in ndisc_parse_options() local
226 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options()
233 l = nd_opt->nd_opt_len << 3; in ndisc_parse_options()
236 if (ndisc_ops_parse_options(dev, nd_opt, ndopts)) in ndisc_parse_options()
238 switch (nd_opt->nd_opt_type) { in ndisc_parse_options()
244 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { in ndisc_parse_options()
247 __func__, nd_opt->nd_opt_type); in ndisc_parse_options()
249 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
253 ndopts->nd_opts_pi_end = nd_opt; in ndisc_parse_options()
254 if (!ndopts->nd_opt_array[nd_opt->nd_opt_type]) in ndisc_parse_options()
[all …]
/linux-6.6.21/include/net/
Dndisc.h205 struct nd_opt_hdr *nd_opt,
237 struct nd_opt_hdr *nd_opt, in ndisc_ops_parse_options() argument
241 return dev->ndisc_ops->parse_options(dev, nd_opt, ndopts); in ndisc_ops_parse_options()
/linux-6.6.21/net/openvswitch/
Dflow.c588 struct nd_opt_hdr *nd_opt = in parse_icmpv6() local
590 int opt_len = nd_opt->nd_opt_len * 8; in parse_icmpv6()
599 if (nd_opt->nd_opt_type == ND_OPT_SOURCE_LL_ADDR in parse_icmpv6()
604 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()
605 } else if (nd_opt->nd_opt_type == ND_OPT_TARGET_LL_ADDR in parse_icmpv6()
610 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()