Use IP and MAC API types for neighbors
[vpp.git] / src / plugins / mactime / mactime.c
index 837b317..572b913 100644 (file)
@@ -553,8 +553,7 @@ show_mactime_command_fn (vlib_main_t * vm,
       for (j = 0; j < vec_len (mm->arp_cache_copy); j++)
        {
          n = mm->arp_cache_copy + j;
-         if (!memcmp (dp->mac_address, n->ethernet_address,
-                      sizeof (n->ethernet_address)))
+         if (!memcmp (dp->mac_address, n->mac.bytes, sizeof (n->mac)))
            {
              vlib_cli_output (vm, "%17s%U", " ", format_ip4_address,
                               &n->ip4_address);