Lines Matching defs:iface
217 struct atalk_iface **iface = &atalk_interfaces;
221 while ((tmp = *iface) != NULL) {
223 *iface = tmp->next;
228 iface = &tmp->next;
236 struct atalk_iface *iface = kzalloc(sizeof(*iface), GFP_KERNEL);
238 if (!iface)
242 iface->dev = dev;
243 dev->atalk_ptr = iface;
244 iface->address = *sa;
245 iface->status = 0;
248 iface->next = atalk_interfaces;
249 atalk_interfaces = iface;
252 return iface;
350 struct atalk_iface *iface = dev->atalk_ptr;
351 return iface ? &iface->address : NULL;
358 struct atalk_iface *iface;
365 for (iface = atalk_interfaces; iface; iface = iface->next) {
366 if (!fiface && !(iface->dev->flags & IFF_LOOPBACK))
367 fiface = iface;
368 if (!(iface->dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))) {
369 retval = &iface->address;
391 struct atalk_iface *iface = dev->atalk_ptr;
393 if (!iface || iface->status & ATIF_PROBE)
397 iface->address.s_node != node &&
401 return iface;
403 iface = NULL;
410 struct atalk_iface *iface;
413 for (iface = atalk_interfaces; iface; iface = iface->next) {
416 iface->address.s_node == node) &&
417 iface->address.s_net == net &&
418 !(iface->status & ATIF_PROBE))
421 /* XXXX.0 -- net.0 returns the iface associated with net */
423 ntohs(iface->nets.nr_firstnet) <= ntohs(net) &&
424 ntohs(net) <= ntohs(iface->nets.nr_lastnet))
428 return iface;
514 struct atalk_iface *iface, *riface;
545 for (iface = atalk_interfaces; iface; iface = iface->next) {
548 ntohs(iface->nets.nr_firstnet) &&
550 ntohs(iface->nets.nr_lastnet))
551 riface = iface;
553 if (ga->sat_addr.s_net == iface->address.s_net &&
554 ga->sat_addr.s_node == iface->address.s_node)
555 riface = iface;
651 * delete our use of them (iface and route).
709 * if this is a point-to-point iface, and we already
710 * have an iface for this AppleTalk address, then we
781 "iface.\n");
1315 * Can it ever happen that a packet is from a PPP iface and
1320 "packet received from PPP iface\n");
1459 * AppleTalk iface