Lines Matching refs:ndopts
172 struct ndisc_options *ndopts) in ndisc_parse_options() argument
176 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options()
178 memset(ndopts, 0, sizeof(*ndopts)); in ndisc_parse_options()
191 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { in ndisc_parse_options()
196 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
200 ndopts->nd_opts_pi_end = nd_opt; in ndisc_parse_options()
201 if (ndopts->nd_opt_array[nd_opt->nd_opt_type] == 0) in ndisc_parse_options()
202 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
216 return ndopts; in ndisc_parse_options()
609 struct ndisc_options ndopts; in ndisc_recv_ns() local
626 if (!ndisc_parse_options(msg->opt, ndoptlen, &ndopts)) { in ndisc_recv_ns()
632 if (ndopts.nd_opts_src_lladdr) { in ndisc_recv_ns()
633 lladdr = (u8*)(ndopts.nd_opts_src_lladdr + 1); in ndisc_recv_ns()
634 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in ndisc_recv_ns()
813 struct ndisc_options ndopts; in ndisc_recv_na() local
836 if (!ndisc_parse_options(msg->opt, ndoptlen, &ndopts)) { in ndisc_recv_na()
841 if (ndopts.nd_opts_tgt_lladdr) { in ndisc_recv_na()
842 lladdr = (u8*)(ndopts.nd_opts_tgt_lladdr + 1); in ndisc_recv_na()
843 lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3; in ndisc_recv_na()
901 struct ndisc_options ndopts; in ndisc_router_discovery() local
933 if (!ndisc_parse_options(opt, optlen, &ndopts)) { in ndisc_router_discovery()
1038 if (ndopts.nd_opts_src_lladdr) { in ndisc_router_discovery()
1039 lladdr = (u8*)((ndopts.nd_opts_src_lladdr)+1); in ndisc_router_discovery()
1040 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in ndisc_router_discovery()
1051 if (ndopts.nd_opts_pi) { in ndisc_router_discovery()
1053 for (p = ndopts.nd_opts_pi; in ndisc_router_discovery()
1055 p = ndisc_next_option(p, ndopts.nd_opts_pi_end)) { in ndisc_router_discovery()
1060 if (ndopts.nd_opts_mtu) { in ndisc_router_discovery()
1063 memcpy(&mtu, ((u8*)(ndopts.nd_opts_mtu+1))+2, sizeof(mtu)); in ndisc_router_discovery()
1083 if (ndopts.nd_opts_tgt_lladdr || ndopts.nd_opts_rh) { in ndisc_router_discovery()
1102 struct ndisc_options ndopts; in ndisc_redirect_rcv() local
1153 if (!ndisc_parse_options((u8*)(dest + 1), optlen, &ndopts)) { in ndisc_redirect_rcv()
1160 if (ndopts.nd_opts_tgt_lladdr) { in ndisc_redirect_rcv()
1161 lladdr = (u8*)(ndopts.nd_opts_tgt_lladdr + 1); in ndisc_redirect_rcv()
1162 lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3; in ndisc_redirect_rcv()