Lines Matching refs:cur
175 static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, in ndisc_next_option() argument
179 if (!cur || !end || cur >= end) in ndisc_next_option()
181 type = cur->nd_opt_type; in ndisc_next_option()
183 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_option()
184 } while (cur < end && cur->nd_opt_type != type); in ndisc_next_option()
185 return cur <= end && cur->nd_opt_type == type ? cur : NULL; in ndisc_next_option()
194 static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur, in ndisc_next_useropt() argument
197 if (!cur || !end || cur >= end) in ndisc_next_useropt()
200 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_useropt()
201 } while (cur < end && !ndisc_is_useropt(cur)); in ndisc_next_useropt()
202 return cur <= end && ndisc_is_useropt(cur) ? cur : NULL; in ndisc_next_useropt()