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

Function in_lltable_free_entry

freebsd/netinet/in.c:1352–1369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1350}
1351
1352static void
1353in_lltable_free_entry(struct lltable *llt, struct llentry *lle)
1354{
1355 size_t pkts_dropped;
1356
1357 LLE_WLOCK_ASSERT(lle);
1358 KASSERT(llt != NULL, ("lltable is NULL"));
1359
1360 /* Unlink entry from table if not already */
1361 if ((lle->la_flags & LLE_LINKED) != 0) {
1362 IF_AFDATA_WLOCK_ASSERT(llt->llt_ifp);
1363 lltable_unlink_entry(llt, lle);
1364 }
1365
1366 /* Drop hold queue */
1367 pkts_dropped = llentry_free(lle);
1368 ARPSTAT_ADD(dropped, pkts_dropped);
1369}
1370
1371static int
1372in_lltable_rtcheck(struct ifnet *ifp, u_int flags, const struct sockaddr *l3addr)

Callers

nothing calls this directly

Calls 2

lltable_unlink_entryFunction · 0.85
llentry_freeFunction · 0.85

Tested by

no test coverage detected