OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
351 stars 126 forks source link

Bogus ARP entry shown by ofp_arp_show_table() #210

Open JannePeltonen opened 6 years ago

JannePeltonen commented 6 years ago

The first ARP entry shown by the show arp command in CLI looks always like this:

VRF ADDRESS MAC AGE 16843009 1.1.1.1 01:01:01:01:01:01 4076364936

This happens because ofp_arp_init_tables() does memset(&shm->arp.entries[0], 1, sizeof(shm->arp.entries[0])) for no obvious reason (and also excludes the all-ones bogus entry from the freelist).