* Dump lle state for a specific address family. */
| 85 | * Dump lle state for a specific address family. |
| 86 | */ |
| 87 | static int |
| 88 | lltable_dump_af(struct lltable *llt, struct sysctl_req *wr) |
| 89 | { |
| 90 | struct epoch_tracker et; |
| 91 | int error; |
| 92 | |
| 93 | LLTABLE_LIST_LOCK_ASSERT(); |
| 94 | |
| 95 | if (llt->llt_ifp->if_flags & IFF_LOOPBACK) |
| 96 | return (0); |
| 97 | error = 0; |
| 98 | |
| 99 | NET_EPOCH_ENTER(et); |
| 100 | error = lltable_foreach_lle(llt, |
| 101 | (llt_foreach_cb_t *)llt->llt_dump_entry, wr); |
| 102 | NET_EPOCH_EXIT(et); |
| 103 | |
| 104 | return (error); |
| 105 | } |
| 106 | |
| 107 | /* |
| 108 | * Dump arp state for a specific address family. |
no test coverage detected