Revision 4827b69f proto/bgp/bgp.c

View differences:

proto/bgp/bgp.c
612 612
#ifdef IPV6
613 613
  {
614 614
    struct ifa *a;
615
    p->local_link = ipa_or(ipa_build(0xfe80,0,0,0), ipa_and(p->local_addr, ipa_build(0,0,~0,~0)));
615
    p->local_link = IPA_NONE;
616 616
    WALK_LIST(a, p->neigh->iface->addrs)
617 617
      if (a->scope == SCOPE_LINK)
618 618
        {
619 619
	  p->local_link = a->ip;
620 620
	  break;
621 621
	}
622

  
623
    if (! ipa_nonzero(p->local_link))
624
      log(L_WARN "%s: Missing link local address on interface %s", p->p.name,  p->neigh->iface->name);
625

  
622 626
    DBG("BGP: Selected link-level address %I\n", p->local_link);
623 627
  }
624 628
#endif

Also available in: Unified diff