Lines Matching refs:ip2m
44 ip2mac_t ip2m;
51 ncec_ip2mac_response(&ip2m, ncec);
67 (*ncec_cb->ncec_cb_func)(&ip2m, ncec_cb->ncec_cb_arg);
75 * fill up the ip2m response fields with inforamation from the nce.
78 ncec_ip2mac_response(ip2mac_t *ip2m, ncec_t *ncec)
86 bzero(ip2m, sizeof (*ip2m));
88 ip2m->ip2mac_err = 0;
90 ip2m->ip2mac_err = ESRCH;
92 sin6 = (sin6_t *)&ip2m->ip2mac_pa;
96 sin = (sin_t *)&ip2m->ip2mac_pa;
100 if (ip2m->ip2mac_err == 0) {
101 sdl = &ip2m->ip2mac_ha;
177 ip2mac(uint_t op, ip2mac_t *ip2m, ip2mac_callback_t *cb, void *cbarg,
193 isv6 = (ip2m->ip2mac_pa.ss_family == AF_INET6);
197 ip2m->ip2mac_err = EINVAL;
208 * find the ill from the ip2m->ip2mac_ifindex
210 ill = ill_lookup_on_ifindex(ip2m->ip2mac_ifindex, isv6, ipst);
212 ip2m->ip2mac_err = ENXIO;
217 sin6 = (sin6_t *)&ip2m->ip2mac_pa;
226 sin = (sin_t *)&ip2m->ip2mac_pa;
237 ip2m->ip2mac_err = ESRCH;
245 ncec_ip2mac_response(ip2m, ncec);
246 ip2m->ip2mac_err = 0;
248 ip2m->ip2mac_err = ESRCH;
254 ip2m->ip2mac_err = err;
262 ip2m->ip2mac_err = ESRCH;
267 ncec_ip2mac_response(ip2m, ncec);
268 ip2m->ip2mac_err = 0;
303 ip2m->ip2mac_err = EINPROGRESS;
308 ip2m->ip2mac_err = ESRCH;