Lines Matching defs:orig_node
484 struct orig_node *orig_node;
488 orig_node = hashit.bucket->data;
489 if ((orig_node != NULL) &&
490 (orig_node->router != NULL) &&
491 (orig_node->flags & VIS_SERVER) &&
492 (orig_node->router->tq_avg > best_tq)) {
493 best_tq = orig_node->router->tq_avg;
494 memcpy(info->packet.target_orig, orig_node->orig,
516 struct orig_node *orig_node;
544 orig_node = hashit_global.bucket->data;
545 if (orig_node->router != NULL
546 && compare_orig(orig_node->router->addr,
547 orig_node->orig)
548 && (orig_node->router->if_incoming->if_status ==
550 && orig_node->router->tq_avg > 0) {
555 orig_node->router->if_incoming->net_dev->dev_addr,
557 memcpy(entry->dest, orig_node->orig, ETH_ALEN);
558 entry->quality = orig_node->router->tq_avg;
611 struct orig_node *orig_node;
620 orig_node = hashit.bucket->data;
623 if ((!orig_node) || (!orig_node->router))
625 if (!(orig_node->flags & VIS_SERVER))
629 if (recv_list_is_in(&info->recv_list, orig_node->orig))
632 memcpy(info->packet.target_orig, orig_node->orig, ETH_ALEN);
633 batman_if = orig_node->router->if_incoming;
634 memcpy(dstaddr, orig_node->router->addr, ETH_ALEN);
649 struct orig_node *orig_node;
655 orig_node = ((struct orig_node *)
658 if ((!orig_node) || (!orig_node->router))
663 batman_if = orig_node->router->if_incoming;
664 memcpy(dstaddr, orig_node->router->addr, ETH_ALEN);