]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Merge commit '924868543c2010f3ef2cfcb7ba6bac5988ab3264' into integrated
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 30 Jul 2013 19:34:47 +0000 (21:34 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 30 Jul 2013 19:34:47 +0000 (21:34 +0200)
Conflicts:

proto/ospf/iface.c

1  2 
proto/ospf/iface.c
sysdep/linux/netlink.c

index 19f4c585f24f802678b0cbe8cdad312137e179c6,3da8f56cb1b9c4acf73b1b9e289364e5e5b8cbc3..11eb4f84738b3760220e661015beeae3b3859c13
@@@ -534,13 -533,18 +534,13 @@@ ospf_iface_new(struct ospf_area *oa, st
    ifa->rxbuf = ip->rxbuf;
    ifa->check_link = ip->check_link;
    ifa->ecmp_weight = ip->ecmp_weight;
 -
 -#ifdef OSPFv2
    ifa->autype = ip->autype;
    ifa->passwords = ip->passwords;
-   ifa->ptp_netmask = !(addr->flags & IA_PEER);
 +  ifa->instance_id = ip->instance_id;
 +
+   ifa->ptp_netmask = addr ? !(addr->flags & IA_PEER) : 0;
    if (ip->ptp_netmask < 2)
      ifa->ptp_netmask = ip->ptp_netmask;
 -#endif
 -
 -#ifdef OSPFv3
 -  ifa->instance_id = ip->instance_id;
 -#endif
  
    ifa->type = ospf_iface_classify(ip->type, addr);
  
index 3f6af5bd47bfbf121d1bb870adcb873184672504,1d24ae0ff290be68ff636e002b700caa639eeade..2b434c4c4b63f6bd38df765ec8f404a20e434e84
@@@ -871,8 -840,10 +871,9 @@@ nl_parse_route(struct nlmsghdr *h, int 
        {
          neighbor *ng;
          ra.dest = RTD_ROUTER;
 -        memcpy(&ra.gw, RTA_DATA(a[RTA_GATEWAY]), sizeof(ra.gw));
 -        ipa_ntoh(ra.gw);
 +        ra.gw = rtax_get_ipa(a[RTA_GATEWAY], ipv4);
  
+ #ifdef IPV6
          /* Silently skip strange 6to4 routes */
          if (ipa_in_net(ra.gw, IPA_NONE, 96))
            return;