Lines Matching refs:nd

226 static void test_callback(sd_ndisc *nd, sd_ndisc_event_t event, sd_ndisc_router *rt, void *userdata…  in test_callback()  argument
238 assert_se(nd); in test_callback()
262 sd_ndisc *nd; in TEST() local
268 assert_se(sd_ndisc_new(&nd) >= 0); in TEST()
269 assert_se(nd); in TEST()
271 assert_se(sd_ndisc_attach_event(nd, e, 0) >= 0); in TEST()
273 assert_se(sd_ndisc_set_ifindex(nd, 42) >= 0); in TEST()
274 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0); in TEST()
275 assert_se(sd_ndisc_set_callback(nd, test_callback, e) >= 0); in TEST()
281 assert_se(sd_ndisc_stop(nd) >= 0); in TEST()
282 assert_se(sd_ndisc_start(nd) >= 0); in TEST()
283 assert_se(sd_ndisc_start(nd) >= 0); in TEST()
284 assert_se(sd_ndisc_stop(nd) >= 0); in TEST()
286 assert_se(sd_ndisc_start(nd) >= 0); in TEST()
290 nd = sd_ndisc_unref(nd); in TEST()
291 assert_se(!nd); in TEST()
301 sd_ndisc *nd = test_timeout_nd; in test_timeout_value() local
304 assert_se(nd); in test_timeout_value()
305 assert_se(nd->event); in test_timeout_value()
308 sd_event_exit(nd->event, 0); in test_timeout_value()
334 FORMAT_TIMESPAN(nd->retransmit_time, USEC_PER_MSEC), in test_timeout_value()
337 assert_se(min <= nd->retransmit_time); in test_timeout_value()
338 assert_se(max >= nd->retransmit_time); in test_timeout_value()
340 last = nd->retransmit_time; in test_timeout_value()
342 assert_se(sd_event_source_set_time(nd->timeout_event_source, 0) >= 0); in test_timeout_value()
349 sd_ndisc *nd; in TEST() local
355 assert_se(sd_ndisc_new(&nd) >= 0); in TEST()
356 assert_se(nd); in TEST()
358 test_timeout_nd = nd; in TEST()
360 assert_se(sd_ndisc_attach_event(nd, e, 0) >= 0); in TEST()
362 assert_se(sd_ndisc_set_ifindex(nd, 42) >= 0); in TEST()
363 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0); in TEST()
369 assert_se(sd_ndisc_start(nd) >= 0); in TEST()
373 nd = sd_ndisc_unref(nd); in TEST()