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

Function nd6_flush_holdchain

freebsd/netinet6/nd6.c:2451–2472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2449}
2450
2451int
2452nd6_flush_holdchain(struct ifnet *ifp, struct mbuf *chain,
2453 struct sockaddr_in6 *dst)
2454{
2455 struct mbuf *m, *m_head;
2456 int error = 0;
2457
2458 m_head = chain;
2459
2460 while (m_head) {
2461 m = m_head;
2462 m_head = m_head->m_nextpkt;
2463 m->m_nextpkt = NULL;
2464 error = nd6_output_ifp(ifp, ifp, m, dst, NULL);
2465 }
2466
2467 /*
2468 * XXX
2469 * note that intermediate errors are blindly ignored
2470 */
2471 return (error);
2472}
2473
2474static int
2475nd6_need_cache(struct ifnet *ifp)

Callers 2

nd6_cache_lladdrFunction · 0.85
nd6_na_inputFunction · 0.85

Calls 1

nd6_output_ifpFunction · 0.85

Tested by

no test coverage detected