void zebra_evpn_print(struct zebra_evpn *zevpn, void **ctxt)
{
struct vty *vty;
- zebra_vtep_t *zvtep;
+ struct zebra_vtep *zvtep;
uint32_t num_macs;
uint32_t num_neigh;
json_object *json = NULL;
{
struct vty *vty;
struct zebra_evpn *zevpn;
- zebra_vtep_t *zvtep;
+ struct zebra_vtep *zvtep;
uint32_t num_vteps = 0;
uint32_t num_macs = 0;
uint32_t num_neigh = 0;
/*
* See if remote VTEP matches with prefix.
*/
-static int zebra_evpn_vtep_match(struct in_addr *vtep_ip, zebra_vtep_t *zvtep)
+static int zebra_evpn_vtep_match(struct in_addr *vtep_ip,
+ struct zebra_vtep *zvtep)
{
return (IPV4_ADDR_SAME(vtep_ip, &zvtep->vtep_ip));
}
/*
* Locate remote VTEP in EVPN hash table.
*/
-zebra_vtep_t *zebra_evpn_vtep_find(struct zebra_evpn *zevpn,
- struct in_addr *vtep_ip)
+struct zebra_vtep *zebra_evpn_vtep_find(struct zebra_evpn *zevpn,
+ struct in_addr *vtep_ip)
{
- zebra_vtep_t *zvtep;
+ struct zebra_vtep *zvtep;
if (!zevpn)
return NULL;
/*
* Add remote VTEP to EVPN hash table.
*/
-zebra_vtep_t *zebra_evpn_vtep_add(struct zebra_evpn *zevpn,
- struct in_addr *vtep_ip, int flood_control)
+struct zebra_vtep *zebra_evpn_vtep_add(struct zebra_evpn *zevpn,
+ struct in_addr *vtep_ip,
+ int flood_control)
{
- zebra_vtep_t *zvtep;
+ struct zebra_vtep *zvtep;
- zvtep = XCALLOC(MTYPE_ZEVPN_VTEP, sizeof(zebra_vtep_t));
+ zvtep = XCALLOC(MTYPE_ZEVPN_VTEP, sizeof(struct zebra_vtep));
zvtep->vtep_ip = *vtep_ip;
zvtep->flood_control = flood_control;
/*
* Remove remote VTEP from EVPN hash table.
*/
-int zebra_evpn_vtep_del(struct zebra_evpn *zevpn, zebra_vtep_t *zvtep)
+int zebra_evpn_vtep_del(struct zebra_evpn *zevpn, struct zebra_vtep *zvtep)
{
if (zvtep->next)
zvtep->next->prev = zvtep->prev;
*/
int zebra_evpn_vtep_del_all(struct zebra_evpn *zevpn, int uninstall)
{
- zebra_vtep_t *zvtep, *zvtep_next;
+ struct zebra_vtep *zvtep, *zvtep_next;
if (!zevpn)
return -1;
* Install remote VTEP into the kernel if the remote VTEP has asked
* for head-end-replication.
*/
-int zebra_evpn_vtep_install(struct zebra_evpn *zevpn, zebra_vtep_t *zvtep)
+int zebra_evpn_vtep_install(struct zebra_evpn *zevpn, struct zebra_vtep *zvtep)
{
if (is_vxlan_flooding_head_end() &&
(zvtep->flood_control == VXLAN_FLOOD_HEAD_END_REPL)) {
void *zvrf)
{
struct zebra_evpn *zevpn;
- zebra_vtep_t *zvtep;
+ struct zebra_vtep *zvtep;
zevpn = (struct zebra_evpn *)bucket->data;
if (!zevpn)
struct in_addr vtep_ip, const esi_t *esi)
{
struct zebra_evpn *zevpn;
- zebra_vtep_t *zvtep;
+ struct zebra_vtep *zvtep;
zebra_mac_t *mac = NULL;
struct interface *ifp = NULL;
struct zebra_if *zif = NULL;
extern "C" {
#endif
-typedef struct zebra_vtep_t_ zebra_vtep_t;
-
RB_HEAD(zebra_es_evi_rb_head, zebra_evpn_es_evi);
RB_PROTOTYPE(zebra_es_evi_rb_head, zebra_evpn_es_evi, rb_node,
zebra_es_evi_rb_cmp);
*
* Right now, this just has each remote VTEP's IP address.
*/
-struct zebra_vtep_t_ {
+struct zebra_vtep {
/* Remote IP. */
/* NOTE: Can only be IPv4 right now. */
struct in_addr vtep_ip;
int flood_control;
/* Links. */
- struct zebra_vtep_t_ *next;
- struct zebra_vtep_t_ *prev;
+ struct zebra_vtep *next;
+ struct zebra_vtep *prev;
};
/*
struct interface *svi_if;
/* List of remote VTEPs */
- zebra_vtep_t *vteps;
+ struct zebra_vtep *vteps;
/* Local IP */
struct in_addr local_vtep_ip;
int zebra_evpn_del(struct zebra_evpn *zevpn);
int zebra_evpn_send_add_to_client(struct zebra_evpn *zevpn);
int zebra_evpn_send_del_to_client(struct zebra_evpn *zevpn);
-zebra_vtep_t *zebra_evpn_vtep_find(struct zebra_evpn *zevpn,
- struct in_addr *vtep_ip);
-zebra_vtep_t *zebra_evpn_vtep_add(struct zebra_evpn *zevpn,
- struct in_addr *vtep_ip, int flood_control);
-int zebra_evpn_vtep_del(struct zebra_evpn *zevpn, zebra_vtep_t *zvtep);
+struct zebra_vtep *zebra_evpn_vtep_find(struct zebra_evpn *zevpn,
+ struct in_addr *vtep_ip);
+struct zebra_vtep *zebra_evpn_vtep_add(struct zebra_evpn *zevpn,
+ struct in_addr *vtep_ip,
+ int flood_control);
+int zebra_evpn_vtep_del(struct zebra_evpn *zevpn, struct zebra_vtep *zvtep);
int zebra_evpn_vtep_del_all(struct zebra_evpn *zevpn, int uninstall);
-int zebra_evpn_vtep_install(struct zebra_evpn *zevpn, zebra_vtep_t *zvtep);
+int zebra_evpn_vtep_install(struct zebra_evpn *zevpn, struct zebra_vtep *zvtep);
int zebra_evpn_vtep_uninstall(struct zebra_evpn *zevpn,
struct in_addr *vtep_ip);
void zebra_evpn_handle_flooding_remote_vteps(struct hash_bucket *bucket,