Diff for /embedaddon/bird/proto/ospf/iface.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2017/08/22 12:33:54 version 1.1.1.2, 2021/03/17 19:50:23
Line 118  ospf_sk_open(struct ospf_iface *ifa) Line 118  ospf_sk_open(struct ospf_iface *ifa)
   sk->dport = OSPF_PROTO;    sk->dport = OSPF_PROTO;
   sk->saddr = ifa->addr->ip;    sk->saddr = ifa->addr->ip;
   sk->iface = ifa->iface;    sk->iface = ifa->iface;
     sk->vrf = p->p.vrf;
   
   sk->tos = ifa->cf->tx_tos;    sk->tos = ifa->cf->tx_tos;
   sk->priority = ifa->cf->tx_priority;    sk->priority = ifa->cf->tx_priority;
Line 200  ospf_open_vlink_sk(struct ospf_proto *p) Line 201  ospf_open_vlink_sk(struct ospf_proto *p)
   sock *sk = sk_new(p->p.pool);    sock *sk = sk_new(p->p.pool);
   sk->type = SK_IP;    sk->type = SK_IP;
   sk->dport = OSPF_PROTO;    sk->dport = OSPF_PROTO;
     sk->vrf = p->p.vrf;
   
   /* FIXME: configurable tos/priority ? */    /* FIXME: configurable tos/priority ? */
   sk->tos = IP_PREC_INTERNET_CONTROL;    sk->tos = IP_PREC_INTERNET_CONTROL;
Line 522  add_nbma_node(struct ospf_iface *ifa, struct nbma_node Line 524  add_nbma_node(struct ospf_iface *ifa, struct nbma_node
 static int  static int
 ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr)  ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr)
 {  {
     /* vlink cannot be stub */
     if (ip->type == OSPF_IT_VLINK)
       return 0;
   
   /* a host address */    /* a host address */
   if (addr->flags & IA_HOST)    if (addr->flags & IA_HOST)
     return 1;      return 1;
Line 859  ospf_iface_reconfigure(struct ospf_iface *ifa, struct  Line 865  ospf_iface_reconfigure(struct ospf_iface *ifa, struct 
                ifname, ifa->priority, new->priority);                 ifname, ifa->priority, new->priority);
   
     ifa->priority = new->priority;      ifa->priority = new->priority;
       ospf_iface_sm(ifa, ISM_NEICH);
     ospf_notify_link_lsa(ifa);      ospf_notify_link_lsa(ifa);
   }    }
   
Line 1254  ospf_iface_change_mtu(struct ospf_proto *p, struct osp Line 1261  ospf_iface_change_mtu(struct ospf_proto *p, struct osp
 {  {
   /* ifa is not vlink */    /* ifa is not vlink */
   
  OSPF_TRACE(D_EVENTS, "Interface %s changed MTU to %d", ifa->iface->mtu);  OSPF_TRACE(D_EVENTS, "Interface %s changed MTU to %d",
              ifa->ifname, ifa->iface->mtu);
   
   ifa->tx_length = ifa_tx_length(ifa);    ifa->tx_length = ifa_tx_length(ifa);
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>