Lines Matching defs:nd
159 Net_Device *nd = NULL;
166 for (nd = first_device; nd; nd = nd->next)
167 if (strcmp (nd->name, name) == 0)
172 *ndp = nd;
217 nd = malloc (sizeof (Net_Device));
218 if (!nd)
226 memset (nd, 0, sizeof (Net_Device));
227 nd->name = strdup (name);
228 if (!nd->name)
231 free(nd);
235 nd->addr = res;
236 nd->ctl = -1;
238 nd->next = first_device;
240 first_device = nd;
243 *ndp = nd;
254 Net_Device *nd;
259 for (nd = first_device; nd; nd = nd->next)
260 if (strcmp (nd->name, name) == 0)
265 *ndp = nd;
284 nd = malloc (sizeof (*nd));
285 if (!nd)
291 memset (nd, 0, sizeof (*nd));
292 nd->name = strdup (name);
293 if (!nd->name)
296 free (nd);
299 nd->addr.sa_family = he->h_addrtype;
301 sin = (struct sockaddr_in *) &nd->addr;
304 nd->ctl = -1;
305 nd->next = first_device;
306 first_device = nd;
308 *ndp = nd;