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

Function in6_lltattach

freebsd/netinet6/in6.c:2462–2483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2460}
2461
2462static struct lltable *
2463in6_lltattach(struct ifnet *ifp)
2464{
2465 struct lltable *llt;
2466
2467 llt = lltable_allocate_htbl(IN6_LLTBL_DEFAULT_HSIZE);
2468 llt->llt_af = AF_INET6;
2469 llt->llt_ifp = ifp;
2470
2471 llt->llt_lookup = in6_lltable_lookup;
2472 llt->llt_alloc_entry = in6_lltable_alloc;
2473 llt->llt_delete_entry = in6_lltable_delete_entry;
2474 llt->llt_dump_entry = in6_lltable_dump_entry;
2475 llt->llt_hash = in6_lltable_hash;
2476 llt->llt_fill_sa_entry = in6_lltable_fill_sa_entry;
2477 llt->llt_free_entry = in6_lltable_free_entry;
2478 llt->llt_match_prefix = in6_lltable_match_prefix;
2479 llt->llt_mark_used = in6_lltable_mark_used;
2480 lltable_link(llt);
2481
2482 return (llt);
2483}
2484
2485void *
2486in6_domifattach(struct ifnet *ifp)

Callers 1

in6_domifattachFunction · 0.85

Calls 2

lltable_allocate_htblFunction · 0.85
lltable_linkFunction · 0.85

Tested by

no test coverage detected