Lines Matching refs:cur
173 static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, in ndisc_next_option() argument
177 if (!cur || !end || cur >= end) in ndisc_next_option()
179 type = cur->nd_opt_type; in ndisc_next_option()
181 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_option()
182 } while (cur < end && cur->nd_opt_type != type); in ndisc_next_option()
183 return cur <= end && cur->nd_opt_type == type ? cur : NULL; in ndisc_next_option()
192 static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur, in ndisc_next_useropt() argument
195 if (!cur || !end || cur >= end) in ndisc_next_useropt()
198 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_useropt()
199 } while (cur < end && !ndisc_is_useropt(cur)); in ndisc_next_useropt()
200 return cur <= end && ndisc_is_useropt(cur) ? cur : NULL; in ndisc_next_useropt()