this_proto = proto_config_new(&proto_evpn, $1);
init_list(&EVPN_CFG->vlans);
init_list(&EVPN_CFG->encaps);
+
+ EVPN_CFG->vni = EVPN_VNI_NOT_SET;
};
add_tail(&EVPN_CFG->encaps, &this_evpn_encap->n);
this_evpn_encap->type = EVPN_ENCAP_TYPE_VXLAN;
- this_evpn_encap->router_addr = IP6_NONE;
+ this_evpn_encap->router_addr = IPA_NONE;
this_evpn_encap->is_default = false;
}
* (and only) encapsulation. If there were more encapsulation types, we would
* have to choose one here.
*/
-static struct evpn_encap *
+static inline struct evpn_encap *
evpn_get_encap(struct evpn_proto *p)
{
ASSERT(list_length(&p->encaps) == 1);