MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nuke_entry

Function nuke_entry

tools/arp/arp.c:722–733  ·  view source on GitHub ↗

* Nuke an arp entry */

Source from the content-addressed store, hash-verified

720 * Nuke an arp entry
721 */
722static void
723nuke_entry(struct sockaddr_dl *sdl __unused,
724 struct sockaddr_in *addr, struct rt_msghdr *rtm)
725{
726 char ip[20];
727
728 if (rtm->rtm_flags & RTF_PINNED)
729 return;
730
731 snprintf(ip, sizeof(ip), "%s", inet_ntoa(addr->sin_addr));
732 delete(ip);
733}
734
735static void
736usage(void)

Callers

nothing calls this directly

Calls 2

snprintfFunction · 0.85
deleteFunction · 0.70

Tested by

no test coverage detected