Home
last modified time | relevance | path

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

/linux/net/6lowpan/
H A Dndisc.c17 struct nd_opt_hdr *nd_opt, in lowpan_ndisc_parse_802154_options() argument
20 switch (nd_opt->nd_opt_len) { in lowpan_ndisc_parse_802154_options()
22 if (ndopts->nd_802154_opt_array[nd_opt->nd_opt_type]) in lowpan_ndisc_parse_802154_options()
25 __func__, nd_opt->nd_opt_type); in lowpan_ndisc_parse_802154_options()
27 ndopts->nd_802154_opt_array[nd_opt->nd_opt_type] = nd_opt; in lowpan_ndisc_parse_802154_options()
36 struct nd_opt_hdr *nd_opt, in lowpan_ndisc_parse_options() argument
42 switch (nd_opt->nd_opt_type) { in lowpan_ndisc_parse_options()
45 return lowpan_ndisc_parse_802154_options(dev, nd_opt, ndopts); in lowpan_ndisc_parse_options()
/linux/net/netfilter/
H A Dnf_conntrack_proto_icmpv6.c142 struct nd_opt_hdr nd_opt; in nf_conntrack_icmpv6_redirect() member
145 const struct nd_opt_hdr *nd_opt; in nf_conntrack_icmpv6_redirect() local
165 nd_opt = skb_header_pointer(skb, dataoff, sizeof(*nd_opt), &tmp.nd_opt); in nf_conntrack_icmpv6_redirect()
166 if (!nd_opt || nd_opt->nd_opt_len == 0) { in nf_conntrack_icmpv6_redirect()
174 if (nd_opt->nd_opt_type != ND_OPT_REDIRECT_HDR) in nf_conntrack_icmpv6_redirect()
/linux/net/ipv6/
H A 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()
234 l = nd_opt->nd_opt_len << 3; in ndisc_parse_options()
237 if (ndisc_ops_parse_options(dev, nd_opt, ndopts)) in ndisc_parse_options()
239 switch (nd_opt->nd_opt_type) { in ndisc_parse_options()
245 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { in ndisc_parse_options()
248 __func__, nd_opt->nd_opt_type); in ndisc_parse_options()
250 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
254 ndopts->nd_opts_pi_end = nd_opt; in ndisc_parse_options()
255 if (!ndopts->nd_opt_array[nd_opt->nd_opt_type]) in ndisc_parse_options()
[all …]
/linux/include/net/
H A Dndisc.h199 struct nd_opt_hdr *nd_opt,
222 struct nd_opt_hdr *nd_opt, in ndisc_ops_parse_options() argument
226 return dev->ndisc_ops->parse_options(dev, nd_opt, ndopts); in ndisc_ops_parse_options()
/linux/net/openvswitch/
H A Dflow.c589 struct nd_opt_hdr *nd_opt = in parse_icmpv6() local
591 int opt_len = nd_opt->nd_opt_len * 8; in parse_icmpv6()
600 if (nd_opt->nd_opt_type == ND_OPT_SOURCE_LL_ADDR in parse_icmpv6()
605 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()
606 } else if (nd_opt->nd_opt_type == ND_OPT_TARGET_LL_ADDR in parse_icmpv6()
611 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()