Lines Matching defs:nd
86 static void test_rs_done(sd_ndisc *nd, uint8_t flags, const struct in6_addr *gateway, unsigned lifetime, int pref, void *userdata) {
98 assert_se(nd);
111 assert_se(sd_ndisc_get_mtu(nd, &mtu) == -ENOMSG);
118 sd_ndisc *nd;
128 assert_se(sd_ndisc_new(&nd) >= 0);
129 assert_se(nd);
131 assert_se(sd_ndisc_attach_event(nd, e, 0) >= 0);
133 assert_se(sd_ndisc_set_index(nd, 42) >= 0);
134 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0);
135 assert_se(sd_ndisc_set_callback(nd, test_rs_done, NULL, NULL, NULL, e) >= 0);
141 assert_se(sd_ndisc_stop(nd) >= 0);
142 assert_se(sd_ndisc_router_discovery_start(nd) >= 0);
143 assert_se(sd_ndisc_stop(nd) >= 0);
145 assert_se(sd_ndisc_router_discovery_start(nd) >= 0);
151 nd = sd_ndisc_unref(nd);
152 assert_se(!nd);