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

Function in_lltattach

freebsd/netinet/in.c:1667–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665}
1666
1667static struct lltable *
1668in_lltattach(struct ifnet *ifp)
1669{
1670 struct lltable *llt;
1671
1672 llt = lltable_allocate_htbl(IN_LLTBL_DEFAULT_HSIZE);
1673 llt->llt_af = AF_INET;
1674 llt->llt_ifp = ifp;
1675
1676 llt->llt_lookup = in_lltable_lookup;
1677 llt->llt_alloc_entry = in_lltable_alloc;
1678 llt->llt_delete_entry = in_lltable_delete_entry;
1679 llt->llt_dump_entry = in_lltable_dump_entry;
1680 llt->llt_hash = in_lltable_hash;
1681 llt->llt_fill_sa_entry = in_lltable_fill_sa_entry;
1682 llt->llt_free_entry = in_lltable_free_entry;
1683 llt->llt_match_prefix = in_lltable_match_prefix;
1684 llt->llt_mark_used = in_lltable_mark_used;
1685 lltable_link(llt);
1686
1687 return (llt);
1688}
1689
1690void *
1691in_domifattach(struct ifnet *ifp)

Callers 1

in_domifattachFunction · 0.85

Calls 2

lltable_allocate_htblFunction · 0.85
lltable_linkFunction · 0.85

Tested by

no test coverage detected