Lines Matching refs:cur
169 static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, in ndisc_next_option() argument
173 if (!cur || !end || cur >= end) in ndisc_next_option()
175 type = cur->nd_opt_type; in ndisc_next_option()
177 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_option()
178 } while (cur < end && cur->nd_opt_type != type); in ndisc_next_option()
179 return cur <= end && cur->nd_opt_type == type ? cur : NULL; in ndisc_next_option()
188 static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur, in ndisc_next_useropt() argument
191 if (!cur || !end || cur >= end) in ndisc_next_useropt()
194 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_useropt()
195 } while (cur < end && !ndisc_is_useropt(cur)); in ndisc_next_useropt()
196 return cur <= end && ndisc_is_useropt(cur) ? cur : NULL; in ndisc_next_useropt()